[0.6.136] send state msg in case of resource conflict 27/191727/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Tue, 23 Oct 2018 03:54:57 +0000 (12:54 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Tue, 23 Oct 2018 03:55:09 +0000 (12:55 +0900)
- share the state info to sync the mm state and player state

Change-Id: I4f29025e23107ff42dd672f94c189de255437ddb

src/mm_player_priv.c

index 97fcd5c..1c221e6 100644 (file)
@@ -627,7 +627,7 @@ __mmplayer_set_state(mm_player_t* player, int state)
 
                /* state changed by resource callback */
                if (player->interrupted_by_resource) {
-                       MMPLAYER_POST_MSG(player, MM_MESSAGE_STATE_INTERRUPTED, NULL);
+                       MMPLAYER_POST_MSG(player, MM_MESSAGE_STATE_INTERRUPTED, &msg);
                } else { /* state changed by usecase */
                        MMPLAYER_POST_MSG(player, MM_MESSAGE_STATE_CHANGED, &msg);
                }