From 1fb3804408e080cd29358dc1aabf0be85b309e3a Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Mon, 2 May 2022 21:57:07 +0900 Subject: [PATCH] Revert "cuda: Fix GstCudaContext refcount bug" This reverts commit df7ee0e21518ab5586e4094f2089048f3767d5f5. We should not unref it since gst_message_new_have_context() takes ownership of the GstContext. Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/cuda/gstcudautils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/cuda/gstcudautils.c b/subprojects/gst-plugins-bad/gst-libs/gst/cuda/gstcudautils.c index 62a82978d0..68888a6973 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/cuda/gstcudautils.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/cuda/gstcudautils.c @@ -236,7 +236,6 @@ gst_cuda_ensure_element_context (GstElement * element, gint device_id, context, *cuda_ctx); msg = gst_message_new_have_context (GST_OBJECT_CAST (element), context); gst_element_post_message (GST_ELEMENT_CAST (element), msg); - gst_context_unref (context); } return TRUE;