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