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
@ -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…
x
Reference in New Issue
Block a user