diff options
author | Minkyu Kang <mk7.kang@samsung.com> | 2015-08-31 15:25:39 +0900 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2015-08-31 15:25:39 +0900 |
commit | 7e5a2cfcc325051357db973300b17cfabb789b63 (patch) | |
tree | 8d83cd4a358b7e00f1414e11c59c3b2b773a1ed8 | |
parent | 2edb324f8b9abffa4dd36735b6c8cb4c86d75d11 (diff) | |
download | air_mediahub-7e5a2cfcc325051357db973300b17cfabb789b63.tar.gz air_mediahub-7e5a2cfcc325051357db973300b17cfabb789b63.tar.bz2 air_mediahub-7e5a2cfcc325051357db973300b17cfabb789b63.zip |
mplayer: fix location of buttons
Change-Id: Id6e5d17ddbf1ffe281f3b6b36d71d12e227bea26
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r-- | src/view/mplayer.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/view/mplayer.c b/src/view/mplayer.c index 97e4e33..ed4972f 100644 --- a/src/view/mplayer.c +++ b/src/view/mplayer.c @@ -36,7 +36,12 @@ #define STYLE_MUSIC_BTN "music_btn" #define PART_MUSIC_BTN "control_btn" -#define PLAY_BTN_LOC 2 + +#define BTN_LOC_SHUFFLE 0 +#define BTN_LOC_PREV 1 +#define BTN_LOC_PLAY 2 +#define BTN_LOC_NEXT 3 +#define BTN_LOC_REPEAT 4 enum _repeat_state { REPEAT_ALL, @@ -79,23 +84,23 @@ struct _btn_info { static struct _btn_info btn_player[] = { { .name = SRC_BTN_MUSIC_SHUFFLE, - .loc = 0, + .loc = BTN_LOC_SHUFFLE, }, { .name = SRC_BTN_MUSIC_PREV, - .loc = 1, + .loc = BTN_LOC_PREV, }, { .name = SRC_BTN_MUSIC_PLAY, - .loc = 2, + .loc = BTN_LOC_PLAY, }, { .name = SRC_BTN_MUSIC_NEXT, - .loc = 3, + .loc = BTN_LOC_NEXT, }, { .name = SRC_BTN_MUSIC_REPEAT, - .loc = 4, + .loc = BTN_LOC_REPEAT, }, }; @@ -479,7 +484,7 @@ static void _player_pause(struct _priv *priv) } ctl = priv->ctl; - ctl->ops->signal(ctl->handle, PLAY_BTN_LOC, SIG_SET_PLAY); + ctl->ops->signal(ctl->handle, BTN_LOC_PLAY, SIG_SET_PLAY); } static void _player_play(struct _priv *priv) @@ -526,7 +531,7 @@ static void _player_play(struct _priv *priv) } ctl = priv->ctl; - ctl->ops->signal(ctl->handle, PLAY_BTN_LOC, SIG_SET_PAUSE); + ctl->ops->signal(ctl->handle, BTN_LOC_PLAY, SIG_SET_PAUSE); } static void _player_stop(struct _priv *priv) @@ -537,7 +542,7 @@ static void _player_stop(struct _priv *priv) playermgr_stop(priv->player); ctl = priv->ctl; - ctl->ops->signal(ctl->handle, PLAY_BTN_LOC, SIG_SET_PLAY); + ctl->ops->signal(ctl->handle, BTN_LOC_PLAY, SIG_SET_PLAY); } static void _player_complete_cb(void *data) |