video: fix pipeline leak in gst_video_convert_sample_async()

This commit is contained in:
Tim-Philipp Müller 2019-03-06 09:17:02 +00:00
parent 50aa1622e1
commit 81ccfdd6fd

View 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;
}
}