video: fix pipeline leak in gst_video_convert_sample_async()
authorTim-Philipp Müller <tim@centricular.com>
Wed, 6 Mar 2019 09:17:02 +0000 (09:17 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 6 Mar 2019 10:04:48 +0000 (10:04 +0000)
gst-libs/gst/video/convertframe.c

index 47cab8a..227d235 100644 (file)
@@ -532,6 +532,7 @@ convert_frame_finish (GstVideoConvertSampleContext * context,
   if (context->pipeline) {
     gst_element_call_async (context->pipeline, convert_frame_stop_pipeline,
         NULL, NULL);
+    gst_object_unref (context->pipeline);
     context->pipeline = NULL;
   }
 }