adaptivedemux: fix coverity issue
authorEunhae Choi <eunhae1.choi@samsung.com>
Tue, 18 Sep 2018 08:15:01 +0000 (17:15 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Tue, 18 Sep 2018 08:15:01 +0000 (17:15 +0900)
Change-Id: Ibcc9c9f327291c9bbbbcde147b96e63f126ba50a

gst-libs/gst/adaptivedemux/gstadaptivedemux.c

index 145da7a..04f4218 100644 (file)
@@ -3123,10 +3123,10 @@ gst_adaptive_demux_stream_update_source (GstAdaptiveDemuxStream * stream,
 #ifdef TIZEN_FEATURE_ADAPTIVE_MODIFICATION
     if (g_object_class_find_property (gobject_class, "user-agent")
         && (demux->user_agent))
-      g_object_set (stream->src, "user-agent", demux->user_agent, NULL);
+      g_object_set (uri_handler, "user-agent", demux->user_agent, NULL);
     if (g_object_class_find_property (gobject_class, "cookies")
         && (demux->cookies))
-      g_object_set (stream->src, "cookies", demux->cookies, NULL);
+      g_object_set (uri_handler, "cookies", demux->cookies, NULL);
 #endif
     if (g_object_class_find_property (gobject_class, "extra-headers")) {
       if (referer || refresh || !allow_cache) {
@@ -3367,7 +3367,6 @@ gst_adaptive_demux_stream_download_uri (GstAdaptiveDemux * demux,
      */
     GST_MANIFEST_UNLOCK (demux);
   } else {
-    GST_MANIFEST_UNLOCK (demux);
     if (stream->last_ret == GST_FLOW_OK)
       stream->last_ret = GST_FLOW_CUSTOM_ERROR;
     ret = GST_FLOW_CUSTOM_ERROR;