From 516988bfad1dd4ee9b9fde06f61e18cbb968e8f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 19 Mar 2021 10:35:09 +0200 Subject: [PATCH] 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: --- gst/rtpmanager/gstrtpbin.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index 622e455..9831176 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -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); -- 2.7.4