X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fmm_player_priv.c;h=3689bed668f0c5bdf13a2435a038623deeee1eff;hb=refs%2Ftags%2Faccepted%2Ftizen%2Funified%2F20240219.160358;hp=d8d1141fc05889b37b4b4064fea5f8a88de662df;hpb=1f4b10c7803ee5a50339992f98e1f359cae1a3b0;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index d8d1141..3689bed 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -1040,10 +1040,12 @@ __mmplayer_gst_combiner_event_probe(GstPad *pad, GstPadProbeInfo *info, gpointer case GST_EVENT_EOS: { /* in case of gapless, drop eos event not to send it to sink */ + MMPLAYER_RECONFIGURE_LOCK(player); if (player->gapless.reconfigure && !player->msg_posted) { LOGD("[%d] %s:%s EOS received but will be drop", stream_type, GST_DEBUG_PAD_NAME(pad)); ret = GST_PAD_PROBE_DROP; } + MMPLAYER_RECONFIGURE_UNLOCK(player); break; } case GST_EVENT_STREAM_START: @@ -4259,9 +4261,9 @@ __mmplayer_update_subtitle(GstElement *object, GstBuffer *buffer, GstPad *pad, g LOGI("subtitle duration is invalid, subtitle duration change " "GST_CLOCK_TIME_NONE -> %" GST_TIME_FORMAT, GST_TIME_ARGS(duration)); } - msg.subtitle.duration = GST_TIME_AS_MSECONDS(duration); + msg.subtitle.duration = (unsigned long)GST_TIME_AS_MSECONDS(duration); - LOGD("update subtitle : [%ld msec] %s", msg.subtitle.duration, (char *)msg.data); + LOGD("update subtitle : [%lu msec] %s", msg.subtitle.duration, (char *)msg.data); MMPLAYER_POST_MSG(player, MM_MESSAGE_UPDATE_SUBTITLE, &msg); gst_buffer_unmap(buffer, &mapinfo);