flvmux: Fix possible crash on GST_ITERATOR_RESYNC
authorVivia Nikolaidou <vivia@ahiru.eu>
Mon, 10 Aug 2020 17:17:38 +0000 (20:17 +0300)
committerVivia Nikolaidou <vivia@ahiru.eu>
Mon, 10 Aug 2020 17:18:30 +0000 (20:18 +0300)
Wrong pointer type

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/696>

gst/flv/gstflvmux.c

index aa91a44..dc06fc0 100644 (file)
@@ -1921,7 +1921,7 @@ gst_flv_mux_find_best_pad (GstAggregator * aggregator, GstClockTime * ts)
       case GST_ITERATOR_RESYNC:
         gst_iterator_resync (pads);
         /* Clear the best pad and start again. It might have disappeared */
-        gst_object_replace ((GstObject **) best, NULL);
+        gst_object_replace ((GstObject **) best, NULL);
         best_ts = GST_CLOCK_TIME_NONE;
         break;
       case GST_ITERATOR_ERROR: