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 20fb796..9a94d4f 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 2e45881..0107286 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 b72bc5e..27ecd55 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>