mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
asfdemux: Send duration query upstream first
An upstream element (like mms or some dlna source) might be able to answer the query. Try that first, else fallback to standard logic
This commit is contained in:
parent
ccb4ae449a
commit
ec19c9b6e4
1 changed files with 14 additions and 11 deletions
|
@ -4218,6 +4218,8 @@ gst_asf_demux_handle_src_query (GstPad * pad, GstObject * parent,
|
|||
break;
|
||||
}
|
||||
|
||||
res = gst_pad_query_default (pad, parent, query);
|
||||
if (!res) {
|
||||
GST_OBJECT_LOCK (demux);
|
||||
|
||||
if (demux->segment.duration != GST_CLOCK_TIME_NONE) {
|
||||
|
@ -4233,6 +4235,7 @@ gst_asf_demux_handle_src_query (GstPad * pad, GstObject * parent,
|
|||
}
|
||||
|
||||
GST_OBJECT_UNLOCK (demux);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue