vtdec: remove unused variable

Fixes:

../sys/applemedia/vtdec.c:611:35: error: variable 'output_flags' set but not used [-Werror,-Wunused-but-set-variable]
  VTDecodeFrameFlags input_flags, output_flags;
                                  ^

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2068>
This commit is contained in:
Matthew Waters 2022-03-28 20:37:54 +11:00 committed by Tim-Philipp Müller
parent 293a41ea76
commit c546392caf

View file

@ -608,7 +608,7 @@ gst_vtdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
{ {
OSStatus status; OSStatus status;
CMSampleBufferRef cm_sample_buffer = NULL; CMSampleBufferRef cm_sample_buffer = NULL;
VTDecodeFrameFlags input_flags, output_flags; VTDecodeFrameFlags input_flags;
GstVtdec *vtdec = GST_VTDEC (decoder); GstVtdec *vtdec = GST_VTDEC (decoder);
GstFlowReturn ret = GST_FLOW_OK; GstFlowReturn ret = GST_FLOW_OK;
int decode_frame_number = frame->decode_frame_number; int decode_frame_number = frame->decode_frame_number;
@ -629,7 +629,6 @@ gst_vtdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
* reordering ourselves. * reordering ourselves.
*/ */
input_flags = kVTDecodeFrame_EnableAsynchronousDecompression; input_flags = kVTDecodeFrame_EnableAsynchronousDecompression;
output_flags = 0;
cm_sample_buffer = cm_sample_buffer =
cm_sample_buffer_from_gst_buffer (vtdec, frame->input_buffer); cm_sample_buffer_from_gst_buffer (vtdec, frame->input_buffer);