[media stream src] support async pause 04/83504/1
authorEunhae Choi <eunhae1.choi@samsung.com>
Thu, 11 Aug 2016 08:47:50 +0000 (17:47 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Thu, 11 Aug 2016 08:47:50 +0000 (17:47 +0900)
Change-Id: Id5ebc9a46440b7159e8eed1aa523df89d96fb11f

src/mm_player_priv.c

index 78e532de59995bb93eb605b738fcef17a1535505..e3fda24d5bb4345b09818d7d26f32547ccf32778 100644 (file)
@@ -1568,13 +1568,13 @@ __mmplayer_gst_callback(GstBus *bus, GstMessage *msg, gpointer data) // @
                                        if ( ! player->audio_cb_probe_id && player->set_mode.pcm_extraction && !player->audio_stream_render_cb_ex)
                                                __mmplayer_configure_audio_callback(player);
 
-                                       if ( ! player->sent_bos && oldstate == GST_STATE_READY) // managed prepare async case
+                                       if (!player->sent_bos && oldstate == GST_STATE_READY) // managed prepare async case
                                        {
                                                mm_attrs_get_int_by_name(player->attrs, "profile_prepare_async", &prepare_async);
                                                LOGD("checking prepare mode for async transition - %d", prepare_async);
                                        }
 
-                                       if ( MMPLAYER_IS_STREAMING(player) || prepare_async )
+                                       if ( MMPLAYER_IS_STREAMING(player) || MMPLAYER_IS_MS_BUFF_SRC(player) || prepare_async )
                                        {
                                                MMPLAYER_SET_STATE ( player, MM_PLAYER_STATE_PAUSED );
 
@@ -10677,6 +10677,11 @@ _mmplayer_pause(MMHandleType hplayer) // @
                break;
        }
 
+       if (MMPLAYER_IS_MS_BUFF_SRC(player)) {
+               LOGD("doing async pause in case of ms buff src");
+               async = TRUE;
+       }
+
        /* pause pipeline */
        ret = __gst_pause( player, async );