mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
pad: forward return value from gst_pad_forward
Instead of ignoring the return value and always return TRUE pass the already agregated result back.
This commit is contained in:
parent
dfc5ff17b7
commit
d57bc8b5dc
1 changed files with 7 additions and 2 deletions
|
@ -2449,6 +2449,7 @@ gboolean
|
||||||
gst_pad_proxy_query_accept_caps (GstPad * pad, GstQuery * query)
|
gst_pad_proxy_query_accept_caps (GstPad * pad, GstQuery * query)
|
||||||
{
|
{
|
||||||
QueryAcceptCapsData data;
|
QueryAcceptCapsData data;
|
||||||
|
gboolean result;
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
|
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
|
||||||
g_return_val_if_fail (GST_IS_QUERY (query), FALSE);
|
g_return_val_if_fail (GST_IS_QUERY (query), FALSE);
|
||||||
|
@ -2461,10 +2462,14 @@ gst_pad_proxy_query_accept_caps (GstPad * pad, GstQuery * query)
|
||||||
/* value to hold the return, by default it holds TRUE */
|
/* value to hold the return, by default it holds TRUE */
|
||||||
data.ret = TRUE;
|
data.ret = TRUE;
|
||||||
|
|
||||||
gst_pad_forward (pad, (GstPadForwardFunction) query_accept_caps_func, &data);
|
result = gst_pad_forward (pad, (GstPadForwardFunction) query_accept_caps_func,
|
||||||
|
&data);
|
||||||
gst_query_set_accept_caps_result (query, data.ret);
|
gst_query_set_accept_caps_result (query, data.ret);
|
||||||
|
|
||||||
return TRUE;
|
GST_CAT_DEBUG_OBJECT (GST_CAT_PADS, pad, "proxying accept caps query: %d",
|
||||||
|
result);
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|
Loading…
Reference in a new issue