[0.6.226] add typefinding in parsebin
[platform/core/multimedia/libmm-player.git] / src / mm_player_priv.c
index 15ecef3..1f13b38 100644 (file)
@@ -5653,9 +5653,11 @@ _mmplayer_pause(MMHandleType hplayer)
 
        /* pause pipeline */
        ret = _mmplayer_gst_pause(player, async);
-
-       if (ret != MM_ERROR_NONE)
+       if (ret != MM_ERROR_NONE) {
                LOGE("failed to pause player. ret : 0x%x", ret);
+               MMPLAYER_GENERATE_DOT_IF_ENABLED(player, "pipeline-pause-err");
+               return ret;
+       }
 
        if (MMPLAYER_PREV_STATE(player) == MM_PLAYER_STATE_READY && MMPLAYER_CURRENT_STATE(player) == MM_PLAYER_STATE_PAUSED) {
                if (_mmplayer_update_video_overlay_param(player, "display_rotation") != MM_ERROR_NONE)
@@ -5663,8 +5665,7 @@ _mmplayer_pause(MMHandleType hplayer)
        }
 
        MMPLAYER_FLEAVE();
-
-       return ret;
+       return MM_ERROR_NONE;
 }
 
 /* in case of streaming, pause could take long time.*/