mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
query sink pads before querying peers of source pads in default handler
Original commit message from CVS: query sink pads before querying peers of source pads in default handler
This commit is contained in:
parent
b1a266a63d
commit
9d3683f11f
1 changed files with 4 additions and 1 deletions
|
@ -2069,7 +2069,10 @@ gst_element_query (GstElement *element, GstQueryType type,
|
|||
if (oclass->query)
|
||||
return oclass->query (element, type, format, value);
|
||||
else {
|
||||
GstPad *pad = gst_element_get_random_pad (element, GST_PAD_SINK);
|
||||
GstPad *pad = gst_element_get_random_pad (element, GST_PAD_SRC);
|
||||
if (pad)
|
||||
return gst_pad_query (pad, type, format, value);
|
||||
pad = gst_element_get_random_pad (element, GST_PAD_SINK);
|
||||
if (pad)
|
||||
return gst_pad_query (GST_PAD_PEER (pad), type, format, value);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue