gstreamer/ext
Mathieu Duponchelle 4e228e0a1f oggdemux: Fix seeking before the first frame.
The previous code was setting keytarget to target
to make sure the keyframe found for each pad was
indeed before the target.

Then if target == keytarget, it assumed a keyframe had been
found, which was not the case if target was before the first frame
in the file.

This patch checks that a keyframe was indeed found, and if not
seeks to 0, without bisecting again.

Assuming default gst qa assets in $HOME/gst-validate

seek_before_first_frame.scenario:

description, seek=true, handles-states=true
pause, playback-time=0.0
seek, playback-time=0.0, start=0.0, flags=accurate+flush
seek, playback-time=0.0, start=0.01, flags=accurate+flush
seek, playback-time=0.0, start=0.1, flags=accurate+flush

GST_DEBUG=*theoradec*:2 gst-validate-1.0 playbin \
uri=file://$HOME/gst-validate/gst-qa-assets/medias/ogg/vorbis_theora.0.ogg \
--set-scenario seek_before_first_frame.scenario

https://bugzilla.gnome.org/show_bug.cgi?id=741097
2014-12-05 10:13:57 +01:00
..
alsa alsa: Use EPIPE instead of ESTRPIPE if the latter does not exist 2014-12-01 09:51:12 +01:00
cdparanoia docs: remove old 0.10 Since markers 2013-11-16 16:10:07 +00:00
libvisual libvisual: Remove < 0.4 support 2014-07-11 10:21:20 +02:00
ogg oggdemux: Fix seeking before the first frame. 2014-12-05 10:13:57 +01:00
pango timeoverlay: add "time-line" property 2014-11-25 14:52:47 +00:00
theora theoraenc: Remove unneeded check 2014-06-09 10:53:03 +02:00
vorbis Don't compare booleans for equality to TRUE and FALSE 2014-12-01 09:51:12 +01:00
Makefile.am gio: Move to gst subdirectory 2012-01-18 16:21:14 +01:00