rtsp-server: Fix coverity issue 50/305250/1 accepted/tizen/unified/20240201.165111 accepted/tizen/unified/x/20240205.063854
authorYoungwoo Cho <young222.cho@samsung.com>
Tue, 30 Jan 2024 09:27:38 +0000 (18:27 +0900)
committerYoungwoo Cho <young222.cho@samsung.com>
Tue, 30 Jan 2024 09:27:38 +0000 (18:27 +0900)
- MISSING_LOCK

[Version] 1.22.8-1
[Issue Type] Coverity

Change-Id: I0a5366474a3ba67a4a75a37eecb2a628d2ec6f54
Signed-off-by: Youngwoo Cho <young222.cho@samsung.com>
packaging/gstreamer.spec
subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-media.c
subprojects/gst-rtsp-server/meson.build

index 76f77cea81fb774b1d8e04dfe6555b3c0fa8ab40..abffcf7b9005a5a1d6fc5c074d1729a037c38cff 100644 (file)
@@ -62,7 +62,7 @@
 
 Name:           %{_name}
 Version:        1.22.8
-Release:        0
+Release:        1
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index 99c718da03b51b0e49c3f7d34bda252f888cd0f1..b5bf47216c07a35c3fe611226c439a68ba8126ce 100644 (file)
@@ -1525,7 +1525,11 @@ gst_rtsp_media_get_dscp_qos (GstRTSPMedia * media)
 
   priv = media->priv;
 
+#ifdef TIZEN_FEATURE_BUG_FIX
+  g_mutex_lock (&priv->lock);
+#else
   g_mutex_unlock (&priv->lock);
+#endif /* TIZEN_FEATURE_BUG_FIX */
   res = priv->dscp_qos;
   g_mutex_unlock (&priv->lock);
 
index a9ce83556b244aced972cb951e52aba4201fae9e..ae6b59e7465bb2d539e358a38029a0d5e74da87a 100644 (file)
@@ -154,7 +154,9 @@ if host_machine.system() != 'windows'
     fallback : ['gstreamer', 'gst_check_dep'])
 endif
 
-# TIZEN BUILD OPTION
+# TIZEN_BUILD_OPTION
+cdata.set('TIZEN_FEATURE_BUG_FIX', true)
+
 if get_option('tv-profile')
   cdata.set('TIZEN_PROFILE_TV', true)
 endif