[TSAM-12338] Removed mini controller in case of unsupported song 20/125720/1
authorRahul Dadhich <r.dadhich@samsung.com>
Wed, 4 Jan 2017 11:26:46 +0000 (16:56 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Tue, 18 Apr 2017 12:15:35 +0000 (17:45 +0530)
Change-Id: I93bd425df57bc495fe9b52eef68bee0c27afdbe0
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
src/core/mp-player-control.c

index ae17e1d..d98addf 100644 (file)
@@ -34,6 +34,7 @@
 #include "mp-widget.h"
 #include "mp-ug-launch.h"
 
+
 #ifndef MP_SOUND_PLAYER
 #include "mp-common.h"
 #endif
@@ -282,7 +283,14 @@ static void _mp_play_control_error_cb(int error_code, void *userdata)
                                                           GET_STR
                                                           ("IDS_MUSIC_POP_UNABLE_TO_PLAY_UNSUPPORTED_FILETYPE"));
 #ifdef MP_SOUND_PLAYER
-               ui_app_exit();
+               if (ad->b_minicontroller_show) {
+                       mp_minicontroller_hide(ad);
+               }
+#ifdef MP_FEATURE_LOCKSCREEN
+               if (ad->b_lockmini_show) {
+                       mp_lockscreenmini_hide(ad);
+               }
+#endif
 #endif
                break;
        case PLAYER_ERROR_CONNECTION_FAILED: