v4l2h264dec: Fix Raspberry Pi4 will not play video in application
authorPawel Stawicki <stawel+gstreamer@gmail.com>
Wed, 25 Jan 2023 00:52:28 +0000 (00:52 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 27 Jan 2023 00:11:06 +0000 (00:11 +0000)
Ensure object v4l2object->pool will be released by
correctly releasing the temporary thread-safety lock

Fixes issue #1729

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3815>

subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c

index 032fd69..a992341 100644 (file)
@@ -4643,8 +4643,8 @@ gst_v4l2_object_stop (GstV4l2Object * v4l2object)
         if (old_pool)
           gst_object_unref (old_pool);
       }
-      gst_object_unref (pool);
     }
+    gst_object_unref (pool);
   }
 
   GST_V4L2_SET_INACTIVE (v4l2object);