diff options
author | Gilbok Lee <gilbok.lee@samsung.com> | 2017-02-02 16:30:47 +0900 |
---|---|---|
committer | Gilbok Lee <gilbok.lee@samsung.com> | 2017-02-02 17:20:59 +0900 |
commit | ec4123f3f4c968980859cb6a0a031c51f425885b (patch) | |
tree | ed803cc250e97e199d5ad488adaf250371e11291 | |
parent | 9c92efea23d564b2b5942c093027626e10791b4b (diff) | |
download | libmm-player-ec4123f3f4c968980859cb6a0a031c51f425885b.tar.gz libmm-player-ec4123f3f4c968980859cb6a0a031c51f425885b.tar.bz2 libmm-player-ec4123f3f4c968980859cb6a0a031c51f425885b.zip |
[v0.6.27] Change FADEOUT_TIME_DEFAULT value to 0submit/tizen_3.0/20170202.113256accepted/tizen/3.0/wearable/20170203.090029accepted/tizen/3.0/tv/20170203.090008accepted/tizen/3.0/mobile/20170203.085945accepted/tizen/3.0/ivi/20170203.090048accepted/tizen/3.0/common/20170203.151010
When a state changes, a delay occurs.
Change-Id: I302c6bcb0706ad0e77f7c1050e479ed14c1ae15c
-rw-r--r-- | packaging/libmm-player.spec | 2 | ||||
-rw-r--r-- | src/mm_player_priv.c | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/packaging/libmm-player.spec b/packaging/libmm-player.spec index 383f410..ab49199 100644 --- a/packaging/libmm-player.spec +++ b/packaging/libmm-player.spec @@ -1,6 +1,6 @@ Name: libmm-player Summary: Multimedia Framework Player Library -Version: 0.6.26 +Version: 0.6.27 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index 4b963d3..b2c6d2d 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -79,7 +79,10 @@ #define MM_VOLUME_FACTOR_MIN 0 #define MM_VOLUME_FACTOR_MAX 1.0 -#define MM_PLAYER_FADEOUT_TIME_DEFAULT 700000 // 700 msec +/* Don't need to sleep for sound fadeout + * fadeout related fucntion will be deleted(Deprecated) + */ +#define MM_PLAYER_FADEOUT_TIME_DEFAULT 0 #define MM_PLAYER_MPEG_VNAME "mpegversion" #define MM_PLAYER_DIVX_VNAME "divxversion" @@ -7176,7 +7179,7 @@ static void __mmplayer_do_sound_fadedown(mm_player_t* player, unsigned int time) && player->pipeline->audiobin && player->pipeline->audiobin[MMPLAYER_A_SINK].gst); - g_object_set(G_OBJECT(player->pipeline->audiobin[MMPLAYER_A_SINK].gst), "mute", 2, NULL); + g_object_set(G_OBJECT(player->pipeline->audiobin[MMPLAYER_A_SINK].gst), "mute", TRUE, NULL); usleep(time); @@ -7192,7 +7195,7 @@ static void __mmplayer_undo_sound_fadedown(mm_player_t* player) && player->pipeline->audiobin && player->pipeline->audiobin[MMPLAYER_A_SINK].gst); - g_object_set(G_OBJECT(player->pipeline->audiobin[MMPLAYER_A_SINK].gst), "mute", 0, NULL); + g_object_set(G_OBJECT(player->pipeline->audiobin[MMPLAYER_A_SINK].gst), "mute", FALSE, NULL); MMPLAYER_FLEAVE(); } @@ -11728,7 +11731,7 @@ GstCaps* caps, GstElementFactory* factory, gpointer data) * failure or error because the decodebin will expose the pad directly. * It make MSL invoke _prepare_async_callback. * So, we need to disable webm format in "autoplug-select" */ - if (strstr(caps_str, "webm")) { + if (caps_str && strstr(caps_str, "webm")) { LOGW("webm is not supported"); result = GST_AUTOPLUG_SELECT_SKIP; goto DONE; |