#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"
&& 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);
&& 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();
}
* 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;