diff --git a/libs/gst/base/gstflowcombiner.c b/libs/gst/base/gstflowcombiner.c index 028f6e0af8..72c5d175d6 100644 --- a/libs/gst/base/gstflowcombiner.c +++ b/libs/gst/base/gstflowcombiner.c @@ -117,9 +117,11 @@ gst_flow_combiner_free (GstFlowCombiner * combiner) static GstFlowCombiner * gst_flow_combiner_ref (GstFlowCombiner * combiner) { - g_return_if_fail (combiner != NULL); + g_return_val_if_fail (combiner != NULL, NULL); g_atomic_int_inc (&combiner->ref_count); + + return combiner; } static void