if (g_strrstr(attribute_name, MM_PLAYER_GAPLESS_MODE)) {
int gapless = 0;
- mm_attrs_get_int_by_name(player->attrs, "gapless_mode", &gapless);
+ mm_attrs_get_int_by_name(player->attrs, MM_PLAYER_GAPLESS_MODE, &gapless);
if (gapless > 0) {
LOGD("disable last-sample at videosink");
g_object_set(player->pipeline->videobin[MMPLAYER_V_SINK].gst, "enable-last-sample", FALSE, NULL);
"sync", TRUE, "max-lateness", FAKE_SINK_MAX_LATENESS, NULL);
}
- mm_attrs_get_int_by_name(attrs, "gapless_mode", &gapless);
+ mm_attrs_get_int_by_name(attrs, MM_PLAYER_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);
LOGD("checking for gapless play option");
+ if (player->build_audio_offload) {
+ LOGE("offload path is not supportable.");
+ goto ERROR;
+ }
+
if (player->pipeline->textbin) {
LOGE("subtitle path is enabled. gapless play is not supported.");
goto ERROR;
if (mm_attrs_get_int_by_name(attrs, "profile_play_count", &count) != MM_ERROR_NONE)
LOGE("failed to get play count");
- if (mm_attrs_get_int_by_name(attrs, "gapless_mode", &gapless) != MM_ERROR_NONE)
+ if (mm_attrs_get_int_by_name(attrs, MM_PLAYER_GAPLESS_MODE, &gapless) != MM_ERROR_NONE)
LOGE("failed to get gapless mode");
/* check repeat count in case of audio */