[TSAM-12277] closing sound player in case of unsupported song 17/125717/1
authorRahul Dadhich <r.dadhich@samsung.com>
Fri, 30 Dec 2016 04:14:51 +0000 (09:44 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Tue, 18 Apr 2017 12:15:35 +0000 (17:45 +0530)
Change-Id: I8642ae1cc369285497d6079af29d67aa22ba3d8c
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
src/core/mp-player-control.c

index 26d3328..ae17e1d 100644 (file)
@@ -281,6 +281,9 @@ static void _mp_play_control_error_cb(int error_code, void *userdata)
                _mp_play_error_handler(ad,
                                                           GET_STR
                                                           ("IDS_MUSIC_POP_UNABLE_TO_PLAY_UNSUPPORTED_FILETYPE"));
+#ifdef MP_SOUND_PLAYER
+               ui_app_exit();
+#endif
                break;
        case PLAYER_ERROR_CONNECTION_FAILED:
                ERROR_TRACE("MM_ERROR_PLAYER_STREAMING_CONNECTION_FAIL");