mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-02 14:20:06 +00:00
mpegtsdemux: Don't answer the SEEKING query if we don't know the answer yet
A bitrate!=-1 is required for seeking but the bitrate is only calculated after the second PCR was read. Fixes bug #590446.
This commit is contained in:
parent
531ce4228d
commit
6115e0cb0e
1 changed files with 7 additions and 0 deletions
|
@ -2795,6 +2795,13 @@ gst_mpegts_demux_src_pad_query (GstPad * pad, GstQuery * query)
|
|||
goto beach;
|
||||
}
|
||||
|
||||
/* We can't say anything about seekability if we didn't
|
||||
* have a second PCR yet because the bitrate is calculated
|
||||
* from this
|
||||
*/
|
||||
if (demux->bitrate == -1 && demux->pcr[1] == -1)
|
||||
goto beach;
|
||||
|
||||
/* We can seek if upstream supports BYTES seeks and we
|
||||
* have a bitrate
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue