[0.6.245] fix crash when video stream is disabled 39/245939/1
authorEunhye Choi <eunhae1.choi@samsung.com>
Tue, 20 Oct 2020 07:42:38 +0000 (16:42 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Tue, 20 Oct 2020 07:42:40 +0000 (16:42 +0900)
- when the select-stream event is sent to pipeline
  it access invalid sink resource during handling it.
- the select-stream event should be sent to uridecodebin3 directly.

Change-Id: I2bd886f0b70b5ce1d7f562eb8fb6884ad9f1f286

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

index 46d8973..6ff67bc 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.244
+Version:    0.6.245
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index a63c5fd..1bde8bf 100644 (file)
@@ -7490,7 +7490,7 @@ _mmplayer_gst_decode_pad_removed(GstElement *elem, GstPad *pad,
        if (MMPLAYER_USE_DECODEBIN(player))
                return;
 
-       if (!videobin || !g_str_has_prefix (GST_PAD_NAME (pad), "video"))
+       if (!videobin || !g_str_has_prefix(GST_PAD_NAME (pad), "video"))
                return;
 
        ret = _mmplayer_gst_set_state(player, mainbin[MMPLAYER_M_V_CONCAT].gst, GST_STATE_NULL, FALSE, timeout);
@@ -8418,7 +8418,7 @@ __mmplayer_switch_stream(mmplayer_t *player, mmplayer_track_type_e type, int ind
 
        if (streams) {
                LOGD("send select stream event");
-               gst_element_send_event(player->pipeline->mainbin[MMPLAYER_M_PIPE].gst,
+               gst_element_send_event(player->pipeline->mainbin[MMPLAYER_M_AUTOPLUG].gst,
                                gst_event_new_select_streams(streams));
                g_list_free(streams);
        }