v4l2h264dec: Fix Raspberry Pi4 will not play video in application 99/287599/1
authorPawel Stawicki <stawel+gstreamer@gmail.com>
Wed, 25 Jan 2023 00:52:28 +0000 (00:52 +0000)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 1 Feb 2023 06:24:25 +0000 (15:24 +0900)
Ensure object v4l2object->pool will be released by
correctly releasing the temporary thread-safety lock

Fixes issue #1729

Change-Id: Ib28d0eb58fb6f280542af1e2fb9cc43142120336
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3786>

packaging/gstreamer.spec
subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c

index 1ec0c11..890ca77 100644 (file)
@@ -62,7 +62,7 @@
 
 Name:           %{_name}
 Version:        1.22.0
-Release:        6
+Release:        7
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index f6b7f56..31ab76e 100644 (file)
@@ -4694,8 +4694,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);