adaptivedemux/rtpmanager: Fix Coverity issues 95/290295/1 accepted/tizen/unified/20230323.172522
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 23 Mar 2023 00:50:55 +0000 (09:50 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 23 Mar 2023 00:51:00 +0000 (09:51 +0900)
- adaptivedemux: missing GST_API_UNLOCK()
- rtpmanager: missing config header

[Version] 1.22.0-24
[Issue Type] Bug fix

Change-Id: Id23a8a8faa40bce5110a2f5d8e2f420eaef20634

packaging/gstreamer.spec
subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c
subprojects/gst-plugins-good/gst/rtpmanager/rtpsession.c

index 20fb79639921550580b64d8cef3654449d20f657..9a94d4f68d7178ddccc5e2d19890cfdded1fc832 100644 (file)
@@ -62,7 +62,7 @@
 
 Name:           %{_name}
 Version:        1.22.0
-Release:        23
+Release:        24
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index 2e45881cebfa900a3b994e7f33cf0506c1830663..0107286e39cce492a81b9b7e0d4848b9f5c51c4c 100644 (file)
@@ -2030,6 +2030,9 @@ gst_adaptive_demux_handle_seek_event (GstAdaptiveDemux * demux,
 
   if (!GST_ADAPTIVE_SCHEDULER_LOCK (demux)) {
     GST_LOG_OBJECT (demux, "Failed to acquire scheduler context");
+#ifdef TIZEN_FEATURE_BUG_FIX
+    GST_API_UNLOCK (demux);
+#endif
     return FALSE;
   }
 
index b72bc5ed0b0561c88bb2c74bded3ba2a4e2e44a6..27ecd55b6af6ca9b354872696748d366c8ed701a 100644 (file)
  * with newer GLib versions (>= 2.31.0) */
 #define GLIB_DISABLE_DEPRECATION_WARNINGS
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <string.h>
 #include <stdlib.h>