mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
oggdemux: ignore header pages when looking for keyframe
This was causing keyframe_granule to be set to 0 for all streams when seeking to the beginning of the stream, i.e., at the beginning of playback. Fixes #619778.
This commit is contained in:
parent
b03b223fb1
commit
3c4466b816
1 changed files with 1 additions and 1 deletions
|
@ -2113,7 +2113,7 @@ gst_ogg_demux_do_seek (GstOggDemux * ogg, GstSegment * segment,
|
||||||
goto next;
|
goto next;
|
||||||
|
|
||||||
granulepos = ogg_page_granulepos (&og);
|
granulepos = ogg_page_granulepos (&og);
|
||||||
if (granulepos == -1) {
|
if (granulepos == -1 || granulepos == 0) {
|
||||||
GST_LOG_OBJECT (ogg, "granulepos of next page is -1");
|
GST_LOG_OBJECT (ogg, "granulepos of next page is -1");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue