diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-09-16 15:48:11 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-10-14 09:55:37 +0200 |
commit | e3ea166d88c42962a6d6f234d7f5db6b172b8f5f (patch) | |
tree | 34a207de344acb6801d556471befe3dfbb266762 | |
parent | 0c6d04ea352bdbee23f625a9522710f2f8adc7d5 (diff) | |
download | gstreamer-plugins-bad-e3ea166d88c42962a6d6f234d7f5db6b172b8f5f.tar.gz |
vtdec: Fix compiler warnings
values of type 'OSStatus' should not be used as format arguments; add an explicit cast to 'int' instead [-Wformat]
-rw-r--r-- | sys/applemedia/vtdec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c index 2c92b0f92..b91797643 100644 --- a/sys/applemedia/vtdec.c +++ b/sys/applemedia/vtdec.c @@ -306,7 +306,7 @@ out: error: GST_ELEMENT_ERROR (vtdec, STREAM, DECODE, (NULL), - ("VTDecompressionSessionDecodeFrame returned %d", status)); + ("VTDecompressionSessionDecodeFrame returned %d", (int) status)); ret = GST_FLOW_ERROR; goto out; } @@ -350,7 +350,7 @@ gst_vtdec_create_session (GstVtdec * vtdec) if (status != noErr) { GST_ELEMENT_ERROR (vtdec, RESOURCE, FAILED, (NULL), - ("VTDecompressionSessionCreate returned %d", status)); + ("VTDecompressionSessionCreate returned %d", (int) status)); return FALSE; } @@ -471,12 +471,12 @@ out: block_error: GST_ELEMENT_ERROR (vtdec, RESOURCE, FAILED, (NULL), - ("CMBlockBufferCreateWithMemoryBlock returned %d", status)); + ("CMBlockBufferCreateWithMemoryBlock returned %d", (int) status)); goto out; sample_error: GST_ELEMENT_ERROR (vtdec, RESOURCE, FAILED, (NULL), - ("CMSampleBufferCreate returned %d", status)); + ("CMSampleBufferCreate returned %d", (int) status)); if (bbuf) CFRelease (bbuf); @@ -520,7 +520,7 @@ gst_vtdec_session_output_callback (void *decompression_output_ref_con, frame->decode_frame_number, image_buffer); if (status != noErr) { - GST_ERROR_OBJECT (vtdec, "Error decoding frame %d", status); + GST_ERROR_OBJECT (vtdec, "Error decoding frame %d", (int) status); goto drop; } |