[0.6.129] fix coverity issue 74/188274/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Mon, 3 Sep 2018 10:58:18 +0000 (19:58 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Tue, 4 Sep 2018 08:10:24 +0000 (17:10 +0900)
- add missed patch from tizen_2.4
  8b3ece3bf237a3b6e6d2bf6d7c18c100e2b00add

Change-Id: Id8bf110d41fd5c165f42191a8770ff3a5af5d4cc

packaging/libmm-player.spec
src/mm_player_priv.c

index 22817f5..5cd44e7 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.128
+Version:    0.6.129
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 6c52dd2..f9c85c1 100644 (file)
@@ -481,9 +481,8 @@ MMStreamingType __mmplayer_get_stream_service_type(mm_player_t* player)
        if (!MMPLAYER_IS_STREAMING(player))
                return STREAMING_SERVICE_NONE;
 
-       if (MMPLAYER_IS_HTTP_STREAMING(player))
-               streaming_type = (player->duration == 0) ?
-                       STREAMING_SERVICE_LIVE : STREAMING_SERVICE_VOD;
+       streaming_type = (player->duration == 0) ?
+               STREAMING_SERVICE_LIVE : STREAMING_SERVICE_VOD;
 
        switch (streaming_type) {
        case STREAMING_SERVICE_LIVE:
@@ -1294,11 +1293,6 @@ __mmplayer_gst_decode_pad_added(GstElement *elem, GstPad *pad, gpointer data)
                                goto ERROR;
                        }
 
-                       if (stype == MM_DISPLAY_SURFACE_REMOTE) {
-                               __mmplayer_add_signal_connection(player, G_OBJECT(sinkpad), MM_PLAYER_SIGNAL_TYPE_VIDEOBIN,
-                                               "notify::caps", G_CALLBACK(__mmplayer_gst_caps_notify_cb), (gpointer)player);
-                       }
-
                        if (player->set_mode.media_packet_video_stream) {
                                g_object_set(G_OBJECT(fakesink), "signal-handoffs", TRUE, NULL);
 
@@ -4829,6 +4823,7 @@ __mmplayer_gst_create_pipeline(mm_player_t* player)
        mainbin[MMPLAYER_M_PIPE].gst = gst_pipeline_new("player");
        if (!mainbin[MMPLAYER_M_PIPE].gst) {
                LOGE("failed to create pipeline");
+               g_free(mainbin);
                goto INIT_ERROR;
        }