Fix some clocking issue in OSS. The issue is that if we seek forward (note: specifically forward-only), then we call ...
Fix some clocking issue in OSS. The issue is that if we seek forward (note: specifically forward-only), then we call ...

Original commit message from CVS:
Fix some clocking issue in OSS. The issue is that if we seek forward (note: specifically forward-only), then we call handle_discont() before re-setting the clock to active. However, gstclock.c tells us that handle_discont only succeeds if allow_discont=TRUE, which is set in... set_active(TRUE). So, we first need to re-activate the clock and *then* call handle_discont(). More importantly, though, we should **NEVER EVER EVER EVER EVER** **NEVER EVER EVER EVER EVER** call clock_wait() after a forward discont without first having called handle_discont(). I don't know who added that code, but it's beyond fundamentally broken. clock_wait() **WAITS** until we're at the new given buftime, so if we do that on a forward-seek buffer, we... yes! we wait the amount of time that we seeked forward. Anyway, Apparently this code has been in here for quite a long time so I don't get how this can ever have worked...

strukturag/gst-plugins-good,jhodapp/gst-plugins-good,zaheerm/gst-plugins-good,mrchapp/gst-plugins-good,strukturag/gst-plugins-good,kittee/gst-plugins-good,jahrome/gst-plugins-good,hizukiayaka/gst-plugins-good,Distrotech/gst-plugins-good,Lachann/gst-plugins-good,krieger-od/gst-plugins-good,krieger-od/gst-plugins-good,kittee/gst-plugins-good,Kurento/gst-plugins-good,luisbg/gst-plugins-good,cablelabs/gst-plugins-good,BigBrother-International/gst-plugins-good,surround-io/gst-plugins-good,collects/gst-plugins-good,Distrotech/gst-plugins-good,kittee/gst-plugins-good,froggatt/gst-plugins-good-m,collects/gst-plugins-good,roopar/gst-plugins-good,pexip/gst-plugins-good,sebras/gst-plugins-good,shelsonjava/gst-plugins-good,knuesel/gst-plugins-good,luisbg/gst-plugins-good,lovebug356/gst-plugins-good,GrokImageCompression/gst-plugins-good,jpakkane/gstreamer-plugins-good,offlinehacker/gst-plugins-good,dgerlach/gst-plugins-good,sh0/gst-plugins-good,sh0/gst-plugins-good,rawoul/gst-plugins-good,hizukiayaka/gst-plugins-good,freedesktop-unofficial-mirror/gstreamer__gst-plugins-good,sebras/gst-plugins-good,jcaden/gst-plugins-good,ylatuya/gst-plugins-good,lovebug356/gst-plugins-good,dgerlach/gst-plugins-good,BigBrother-International/gst-plugins-good,davibe/gst-plugins-good-1.0,luisbg/gst-plugins-good,alessandrod/gst-plugins-good,chamois94/gst-plugins-good,pexip/gst-plugins-good,rawoul/gst-plugins-good,rikaunite/gst-opera_gst-plugins-good,ahmedammar/platform_external_gst_plugins_good,davibe/gst-plugins-good,ndufresne/gst-plugins-good,ijsf/OpenWebRTC-gst-plugins-good,surround-io/gst-plugins-good,surround-io/gst-plugins-good,GStreamer/gst-plugins-good,collects/gst-plugins-good,veo-labs/gst-plugins-good,froggatt/gst-plugins-good-m,freedesktop-unofficial-mirror/gstreamer-sdk__gst-plugins-good,luisbg/gst-plugins-good,jpakkane/gstreamer-plugins-good,roopar/gst-plugins-good,ylatuya/gst-plugins-good,collects/gst-plugins-good,rawoul/gst-plugins-good,froggatt/gst-plugins-good-m,alessandrod/gst-plugins-good,wkatsak/gst-plugins-good,ted-n/gst-plugins-good,pexip/gst-plugins-good,an146/gst-plugins-good,hizukiayaka/gst-plugins-good,reynaldo-samsung/gst-plugins-good,davibe/gst-plugins-good,ted-n/gst-plugins-good,shelsonjava/gst-plugins-good,ndufresne/gst-plugins-good,wkatsak/gst-plugins-good,offlinehacker/gst-plugins-good,pexip/gst-plugins-good,Lachann/gst-plugins-good,freedesktop-unofficial-mirror/gstreamer-sdk__gst-plugins-good,an146/gst-plugins-good,Distrotech/gst-plugins-good,jhodapp/gst-plugins-good,ahmedammar/platform_external_gst_plugins_good,cfoch/gst-plugins-good,alessandrod/gst-plugins-good,prajnashi/gst-plugins-good,krad-radio/gstreamer-plugins-good-krad,krad-radio/gstreamer-plugins-good-krad,StreamUtils/gst-plugins-good,vatavuserban/gst-plugins-good,PPCDroid/external-gst-plugins-good,krad-radio/gstreamer-plugins-good-krad,sebras/gst-plugins-good,jhodapp/gst-plugins-good,StreamUtils/gst-plugins-good,shelsonjava/gst-plugins-good,jcaden/gst-plugins-good,GrokImageCompression/gst-plugins-good,Kurento/gst-plugins-good,krad-radio/gstreamer-plugins-good-krad,GrokImageCompression/gst-plugins-good,jpakkane/gstreamer-plugins-good,ijsf/OpenWebRTC-gst-plugins-good,davibe/gst-plugins-good,jahrome/gst-plugins-good,jcaden/gst-plugins-good,ylatuya/gst-plugins-good,BigBrother-International/gst-plugins-good,greg80303/gst-plugins-good,chamois94/gst-plugins-good,ikonst/gst-plugins-good,reynaldo-samsung/gst-plugins-good,reynaldo-samsung/gst-plugins-good,ted-n/gst-plugins-good,sebras/gst-plugins-good,davibe/gst-plugins-good-1.0,rikaunite/gst-opera_gst-plugins-good,matsu/gst-plugins-good,Kurento/gst-plugins-good,Lachann/gst-plugins-good,loshca/gst-plugins-good,offlinehacker/gst-plugins-good,freedesktop-unofficial-mirror/gstreamer__gst-plugins-good,cablelabs/gst-plugins-good,matsu/gst-plugins-good,mrchapp/gst-plugins-good,jpakkane/gstreamer-plugins-good,GrokImageCompression/gst-plugins-good,wkatsak/gst-plugins-good,cablelabs/gst-plugins-good,krieger-od/gst-plugins-good,ariscop/gst-plugins-good,vatavuserban/gst-plugins-good,Kurento/gst-plugins-good,ndufresne/gst-plugins-good,matsu/gst-plugins-good,greg80303/gst-plugins-good,ariscop/gst-plugins-good,vatavuserban/gst-plugins-good,ijsf/OpenWebRTC-gst-plugins-good,PPCDroid/external-gst-plugins-good,GStreamer/gst-plugins-good,prajnashi/gst-plugins-good,matsu/gst-plugins-good,stfl/gst-plugins-good,chamois94/gst-plugins-good,mrchapp/gst-plugins-good,alessandrod/gst-plugins-good,froggatt/gst-plugins-good-m,offlinehacker/gst-plugins-good,Lachann/gst-plugins-good,dgerlach/gst-plugins-good,lovebug356/gst-plugins-good,knuesel/gst-plugins-good,ylatuya/gst-plugins-good,sh0/gst-plugins-good,jcaden/gst-plugins-good,freedesktop-unofficial-mirror/gstreamer-sdk__gst-plugins-good,ariscop/gst-plugins-good,Distrotech/gst-plugins-good,greg80303/gst-plugins-good,ikonst/gst-plugins-good,Distrotech/gst-plugins-good,ahmedammar/platform_external_gst_plugins_good,vatavuserban/gst-plugins-good,sh0/gst-plugins-good,surround-io/gst-plugins-good,Kurento/gst-plugins-good,GStreamer/gst-plugins-good,lovebug356/gst-plugins-good,zaheerm/gst-plugins-good,GStreamer/gst-plugins-good,krieger-od/gst-plugins-good,roopar/gst-plugins-good,freedesktop-unofficial-mirror/gstreamer__gst-plugins-good,strukturag/gst-plugins-good,kittee/gst-plugins-good,hizukiayaka/gst-plugins-good,chamois94/gst-plugins-good,ndufresne/gst-plugins-good,strukturag/gst-plugins-good,cfoch/gst-plugins-good,ikonst/gst-plugins-good,stfl/gst-plugins-good,StreamUtils/gst-plugins-good,ted-n/gst-plugins-good,reynaldo-samsung/gst-plugins-good,loshca/gst-plugins-good,veo-labs/gst-plugins-good,jahrome/gst-plugins-good,pexip/gst-plugins-good,loshca/gst-plugins-good,stfl/gst-plugins-good,BigBrother-International/gst-plugins-good,PPCDroid/external-gst-plugins-good,rawoul/gst-plugins-good,rikaunite/gst-opera_gst-plugins-good,knuesel/gst-plugins-good,ikonst/gst-plugins-good,freedesktop-unofficial-mirror/gstreamer__gst-plugins-good,wkatsak/gst-plugins-good,davibe/gst-plugins-good-1.0,StreamUtils/gst-plugins-good,an146/gst-plugins-good,loshca/gst-plugins-good,davibe/gst-plugins-good-1.0,zaheerm/gst-plugins-good,jhodapp/gst-plugins-good,cfoch/gst-plugins-good,ijsf/OpenWebRTC-gst-plugins-good,veo-labs/gst-plugins-good,mrchapp/gst-plugins-good,cfoch/gst-plugins-good,knuesel/gst-plugins-good,cablelabs/gst-plugins-good,veo-labs/gst-plugins-good,zaheerm/gst-plugins-good,greg80303/gst-plugins-good,jahrome/gst-plugins-good,rikaunite/gst-opera_gst-plugins-good,ahmedammar/platform_external_gst_plugins_good,stfl/gst-plugins-good,an146/gst-plugins-good,ariscop/gst-plugins-good,freedesktop-unofficial-mirror/gstreamer-sdk__gst-plugins-good,mrchapp/gst-plugins-good,shelsonjava/gst-plugins-good,prajnashi/gst-plugins-good