"preroll-handoff",
G_CALLBACK(__mmplayer_video_stream_decoded_preroll_cb),
(gpointer)player);
+ if (attrs) {
+ int gapless = 0;
+
+ mm_attrs_get_int_by_name(attrs, "gapless_mode", &gapless);
+
+ if (gapless > 0) {
+ LOGD("disable last-sample");
+ g_object_set(player->pipeline->videobin[MMPLAYER_V_SINK].gst, "enable-last-sample", FALSE, NULL);
+ }
+ }
}
break;
}
player->gapless.update_segment[MM_PLAYER_TRACK_TYPE_VIDEO] = FALSE;
/* deactivate pipeline except sinkbins to set up the new pipeline of next uri*/
+ MMPLAYER_POST_MSG(player, MM_MESSAGE_GAPLESS_CONSTRUCTION, NULL); /* post message for gapless */
__mmplayer_deactivate_old_path(player);
MMPLAYER_CMD_UNLOCK(player);