mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
flvdemux: Query duration upstream first
Upstream elements (like rtmpsrc) might be able to provide the duration more accurately than flvdemux. Especially with index-less vod files
This commit is contained in:
parent
1648e46f86
commit
2b9493b5f0
1 changed files with 5 additions and 0 deletions
|
@ -3136,6 +3136,11 @@ gst_flv_demux_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
{
|
||||
GstFormat format;
|
||||
|
||||
/* Try to push upstream first */
|
||||
res = gst_pad_peer_query (demux->sinkpad, query);
|
||||
if (res)
|
||||
goto beach;
|
||||
|
||||
gst_query_parse_duration (query, &format, NULL);
|
||||
|
||||
/* duration is time only */
|
||||
|
|
Loading…
Reference in a new issue