flvmux: unref return of aggregator_pad_peek_buffer
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 13 Apr 2018 21:01:20 +0000 (23:01 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Fri, 13 Apr 2018 21:01:20 +0000 (23:01 +0200)
We ended up leaking every single buffer going through the
muxer, which is far from ideal

gst/flv/gstflvmux.c

index 2dc1817..6b248e4 100644 (file)
@@ -1639,6 +1639,7 @@ gst_flv_mux_find_best_pad (GstAggregator * aggregator, GstClockTime * ts)
         best_ts = t;
       }
     }
+    gst_buffer_unref (buffer);
   }
   GST_DEBUG_OBJECT (aggregator,
       "Best pad found with %" GST_TIME_FORMAT ": %" GST_PTR_FORMAT,