From f29c59e0d8a0fcc9bd85d28c801be5b28522d57f Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Thu, 22 Jun 2017 13:57:27 +0900 Subject: [PATCH] Fix build error when enable gcc -Wformat build option [Version] 0.10.7 [Profile] Mobile, TV [Issue Type] Fix bugs Change-Id: I9853bdb28fd75b66ff1892c645eda76b0106e384 --- transcode/mm_transcode_pipeline.c | 10 +++++----- transcode/mm_transcode_seek.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/transcode/mm_transcode_pipeline.c b/transcode/mm_transcode_pipeline.c index c7ba91b..e97f48e 100755 --- a/transcode/mm_transcode_pipeline.c +++ b/transcode/mm_transcode_pipeline.c @@ -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 { diff --git a/transcode/mm_transcode_seek.c b/transcode/mm_transcode_seek.c index 0a25dc8..ec69b1f 100755 --- a/transcode/mm_transcode_seek.c +++ b/transcode/mm_transcode_seek.c @@ -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"); } -- 2.7.4