Fixed TSAM-10412 SD Card Crash 75/101975/1
authorbhutani.92 <bhutani.92@samsung.com>
Fri, 2 Dec 2016 14:16:56 +0000 (19:46 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Fri, 2 Dec 2016 14:16:56 +0000 (19:46 +0530)
Change-Id: I8e80bdcd8acb49c2a4f66af03d8751f792fd87ce
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
src/common/mp-app.c
src/core/mp-player-control.c
src/view/mp-all-view.c

index 95309f7..a90fe26 100644 (file)
@@ -174,6 +174,7 @@ _mp_app_storage_state_changed_cb(int storage_id, storage_state_e state, void *us
        if (state == STORAGE_STATE_REMOVED) {
                mp_view_mgr_post_event(GET_VIEW_MGR, MP_MMC_REMOVED);
 #ifndef MP_SOUND_PLAYER
+               mp_view_mgr_post_event(GET_VIEW_MGR, MP_PLAYLIST_MGR_ITEM_CHANGED);
                mp_common_force_close_delete();
 #endif
        } else if (state == STORAGE_STATE_UNMOUNTABLE) {
index 2479855..fd68e6f 100644 (file)
@@ -95,7 +95,6 @@ _mp_play_control_play_next_on_error(void *data)
        }
 
        mp_view_mgr_post_event(GET_VIEW_MGR, MP_PLAYLIST_MGR_ITEM_CHANGED);
-
 }
 #endif
 
index ee060f4..ba6dfe9 100644 (file)
@@ -541,6 +541,7 @@ _mp_all_view_on_event(void *thiz, MpViewEvent_e event)
                        Mp_Playlist_Data *mp_playlist_data = (Mp_Playlist_Data *)ad->popup_data;
                        mp_evas_object_del(mp_playlist_data->popup);
                        free(ad->popup_data);
+                       ad->popup_data = NULL;
                }
                break;
        case MP_PLAYLIST_CREATED: