[v0.6.27] Change FADEOUT_TIME_DEFAULT value to 0 33/112733/1 accepted/tizen/common/20170202.175225 accepted/tizen/ivi/20170203.023339 accepted/tizen/mobile/20170203.023310 accepted/tizen/tv/20170203.023322 accepted/tizen/wearable/20170203.023331 submit/tizen/20170202.113611
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 2 Feb 2017 07:30:47 +0000 (16:30 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 2 Feb 2017 11:05:33 +0000 (20:05 +0900)
When a state changes, a delay occurs.

Change-Id: I302c6bcb0706ad0e77f7c1050e479ed14c1ae15c

packaging/libmm-player.spec
src/mm_player_priv.c

index fe14918..9838dd4 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.25
+Version:    0.6.27
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 2403fdf..fc82243 100644 (file)
 #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"
@@ -7188,7 +7191,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);
 
@@ -7204,7 +7207,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();
 }
@@ -11752,7 +11755,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;