[0.6.293] Fix Svace/Coverity issues
[platform/core/multimedia/libmm-player.git] / src / mm_player_priv.c
index d8d1141..3689bed 100644 (file)
@@ -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);