fix video decoded callback was not called in case of elementary stream playback 73/51673/1
authorYounghwan <younghwan_.an@samsung.com>
Thu, 12 Nov 2015 02:51:00 +0000 (11:51 +0900)
committerYounghwan <younghwan_.an@samsung.com>
Thu, 12 Nov 2015 02:55:31 +0000 (11:55 +0900)
Change-Id: I83f5d4356903df9e54d77c4b4c1e2d1603166734

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

index 72edfa9..331cb9b 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.5.67
+Version:    0.5.68
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 76893e8..8d20b9d 100644 (file)
@@ -8153,7 +8153,7 @@ int __gst_pause(mm_player_t* player, gboolean async) // @
 
                        return ret;
                }
-               else if ( (!player->pipeline->videobin) && (!player->pipeline->audiobin) )
+               else if ( !player->video_stream_cb && (!player->pipeline->videobin) && (!player->pipeline->audiobin) )
                {
                        if (MMPLAYER_IS_RTSP_STREAMING(player))
                                return ret;
@@ -12960,9 +12960,10 @@ GstCaps* caps, GstElementFactory* factory, gpointer data)
                /* don't make video because of not required */
                if (stype == MM_DISPLAY_SURFACE_NULL)
                {
-                       LOGD ("no video because it's not required. -> return expose");
-                       if (player->set_mode.media_packet_video_stream == FALSE)
+                       if (player->set_mode.media_packet_video_stream == FALSE
+                               || !(player->profile.uri_type == MM_PLAYER_URI_TYPE_MS_BUFF))
                        {
+                               LOGD ("no video because it's not required. -> return expose");
                                result = GST_AUTOPLUG_SELECT_EXPOSE;
                                goto DONE;
                        }