mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vtdec: Fix compiler warnings
values of type 'OSStatus' should not be used as format arguments; add an explicit cast to 'int' instead [-Wformat]
This commit is contained in:
parent
f2eedb9cee
commit
3a52f6b757
1 changed files with 5 additions and 5 deletions
|
@ -306,7 +306,7 @@ out:
|
||||||
|
|
||||||
error:
|
error:
|
||||||
GST_ELEMENT_ERROR (vtdec, STREAM, DECODE, (NULL),
|
GST_ELEMENT_ERROR (vtdec, STREAM, DECODE, (NULL),
|
||||||
("VTDecompressionSessionDecodeFrame returned %d", status));
|
("VTDecompressionSessionDecodeFrame returned %d", (int) status));
|
||||||
ret = GST_FLOW_ERROR;
|
ret = GST_FLOW_ERROR;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
@ -350,7 +350,7 @@ gst_vtdec_create_session (GstVtdec * vtdec)
|
||||||
|
|
||||||
if (status != noErr) {
|
if (status != noErr) {
|
||||||
GST_ELEMENT_ERROR (vtdec, RESOURCE, FAILED, (NULL),
|
GST_ELEMENT_ERROR (vtdec, RESOURCE, FAILED, (NULL),
|
||||||
("VTDecompressionSessionCreate returned %d", status));
|
("VTDecompressionSessionCreate returned %d", (int) status));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -471,12 +471,12 @@ out:
|
||||||
|
|
||||||
block_error:
|
block_error:
|
||||||
GST_ELEMENT_ERROR (vtdec, RESOURCE, FAILED, (NULL),
|
GST_ELEMENT_ERROR (vtdec, RESOURCE, FAILED, (NULL),
|
||||||
("CMBlockBufferCreateWithMemoryBlock returned %d", status));
|
("CMBlockBufferCreateWithMemoryBlock returned %d", (int) status));
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
sample_error:
|
sample_error:
|
||||||
GST_ELEMENT_ERROR (vtdec, RESOURCE, FAILED, (NULL),
|
GST_ELEMENT_ERROR (vtdec, RESOURCE, FAILED, (NULL),
|
||||||
("CMSampleBufferCreate returned %d", status));
|
("CMSampleBufferCreate returned %d", (int) status));
|
||||||
|
|
||||||
if (bbuf)
|
if (bbuf)
|
||||||
CFRelease (bbuf);
|
CFRelease (bbuf);
|
||||||
|
@ -520,7 +520,7 @@ gst_vtdec_session_output_callback (void *decompression_output_ref_con,
|
||||||
frame->decode_frame_number, image_buffer);
|
frame->decode_frame_number, image_buffer);
|
||||||
|
|
||||||
if (status != noErr) {
|
if (status != noErr) {
|
||||||
GST_ERROR_OBJECT (vtdec, "Error decoding frame %d", status);
|
GST_ERROR_OBJECT (vtdec, "Error decoding frame %d", (int) status);
|
||||||
goto drop;
|
goto drop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue