Fix build error when enable gcc -Wformat build option 59/135359/1 accepted/tizen/4.0/unified/20170816.011951 accepted/tizen/4.0/unified/20170816.015029 accepted/tizen/4.0/unified/20170829.015957 accepted/tizen/unified/20170728.195510 submit/tizen/20170727.075608 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004 submit/tizen_4.0_unified/20170814.115522
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 22 Jun 2017 04:57:27 +0000 (13:57 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 22 Jun 2017 04:57:27 +0000 (13:57 +0900)
[Version] 0.10.7
[Profile] Mobile, TV
[Issue Type] Fix bugs

Change-Id: I9853bdb28fd75b66ff1892c645eda76b0106e384

transcode/mm_transcode_pipeline.c
transcode/mm_transcode_seek.c

index c7ba91b..e97f48e 100755 (executable)
@@ -539,7 +539,7 @@ static int _mm_decode_video_output_link(handle_s *handle)
 
        handle->property->video_cb_probe_id = gst_pad_add_probe(handle->decoder_vidp->sinkdecvideopad, GST_PAD_PROBE_TYPE_BUFFER, _mm_cb_video_output_stream_probe, handle, NULL);
        /* must use sinkpad (sinkpad => srcpad) */
-       debug_log("video_cb_probe_sink_id: %d", handle->property->video_cb_probe_id);
+       debug_log("video_cb_probe_sink_id: %lu", handle->property->video_cb_probe_id);
 
        gst_bin_add(GST_BIN(handle->pipeline), handle->decoder_vidp->decvideobin);
 
@@ -599,7 +599,7 @@ int _mm_decodesrcbin_create(handle_s *handle)
        if (handle->property->has_audio_stream) {
                ret = _mm_decode_audio_output_create(handle);
                if (ret == MM_ERROR_NONE) {
-                       debug_log("Success - Create audiobin pipeline: 0x%2x", handle->decoder_audp->decaudiobin);
+                       debug_log("Success - Create audiobin pipeline: %p", handle->decoder_audp->decaudiobin);
                } else {
                        debug_error("ERROR - Create audiobin pipeline");
                        return ret;
@@ -609,7 +609,7 @@ int _mm_decodesrcbin_create(handle_s *handle)
        if (handle->property->has_video_stream) {
                ret = _mm_decode_video_output_create(handle);
                if (ret == MM_ERROR_NONE) {
-                       debug_log("Success - Create videobin pipeline: 0x%2x", handle->decoder_vidp->decvideobin);
+                       debug_log("Success - Create videobin pipeline: %p", handle->decoder_vidp->decvideobin);
                } else {
                        debug_error("ERROR -Create videobin pipeline");
                        return ret;
@@ -762,7 +762,7 @@ int _mm_encodebin_link(handle_s *handle)
                if (handle->property->videoencoder != MM_VIDEOENCODER_NO_USE) {
                        handle->encodebin->encvideopad = gst_element_get_request_pad(handle->encodebin->encbin, "video");
                        if (handle->encodebin->encvideopad) {
-                               debug_log("encvideopad: 0x%2x", handle->encodebin->encvideopad);
+                               debug_log("encvideopad: %p", handle->encodebin->encvideopad);
                                gst_pad_link(handle->decoder_vidp->srcdecvideopad, handle->encodebin->encvideopad);
                                handle->encodebin->audio_event_probe_id = gst_pad_add_probe(handle->encodebin->encvideopad, GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM, _mm_cb_encodebin_sinkpad_event_probe, handle, NULL);
                        } else {
@@ -776,7 +776,7 @@ int _mm_encodebin_link(handle_s *handle)
                if (handle->property->audioencoder != MM_AUDIOENCODER_NO_USE) {
                        handle->encodebin->encaudiopad = gst_element_get_request_pad(handle->encodebin->encbin, "audio");
                        if (handle->encodebin->encaudiopad) {
-                               debug_log("encaudiopad: 0x%2x", handle->encodebin->encaudiopad);
+                               debug_log("encaudiopad: %p", handle->encodebin->encaudiopad);
                                gst_pad_link(handle->decoder_audp->srcdecaudiopad, handle->encodebin->encaudiopad);
                                handle->encodebin->audio_event_probe_id = gst_pad_add_probe(handle->encodebin->encaudiopad, GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM, _mm_cb_encodebin_sinkpad_event_probe, handle, NULL);
                        } else {
index 0a25dc8..ec69b1f 100755 (executable)
@@ -1249,7 +1249,7 @@ int _mm_transcode_thread(handle_s *handle)
        /* These are a communicator for thread */
        if (!handle->property->queue) {
                handle->property->queue = g_async_queue_new();
-               debug_log("create async queue: 0x%2x", handle->property->queue);
+               debug_log("create async queue: %p", handle->property->queue);
        } else {
                debug_error("ERROR - async queue is already created");
        }