rtpbin: Don't special-case G_SIGNAL_RUN_CLEANUP stage in signal accumulators

All these signals don't run the class handler in the CLEANUP stage.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/913>
This commit is contained in:
Sebastian Dröge 2021-03-19 10:35:09 +02:00 committed by GStreamer Marge Bot
parent 860b74d6e2
commit 516988bfad

View file

@ -2010,8 +2010,7 @@ _gst_element_accumulator (GSignalInvocationHint * ihint,
element = g_value_get_object (handler_return);
GST_DEBUG ("got element %" GST_PTR_FORMAT, element);
if (!(ihint->run_type & G_SIGNAL_RUN_CLEANUP))
g_value_set_object (return_accu, element);
g_value_set_object (return_accu, element);
/* stop emission if we have an element */
return (element == NULL);
@ -2026,8 +2025,7 @@ _gst_caps_accumulator (GSignalInvocationHint * ihint,
caps = g_value_get_boxed (handler_return);
GST_DEBUG ("got caps %" GST_PTR_FORMAT, caps);
if (!(ihint->run_type & G_SIGNAL_RUN_CLEANUP))
g_value_set_boxed (return_accu, caps);
g_value_set_boxed (return_accu, caps);
/* stop emission if we have a caps */
return (caps == NULL);