avfassetsrc: fix unused-but-set warning

../sys/applemedia/avfassetsrc.m:1014:12: error: variable 'caps' set but not used [-Werror,-Wunused-but-set-variable]
  GstCaps *caps;
           ^

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

View file

@ -1011,18 +1011,15 @@ gst_avf_asset_src_uri_handler_init (gpointer g_iface, gpointer iface_data)
{ {
CMSampleBufferRef cmbuf; CMSampleBufferRef cmbuf;
AVAssetReaderTrackOutput *areader = NULL; AVAssetReaderTrackOutput *areader = NULL;
GstCaps *caps;
GstBuffer *buf; GstBuffer *buf;
CMTime dur, ts; CMTime dur, ts;
GST_LOG ("Reading %s next buffer", MEDIA_TYPE_TO_STR (type)); GST_LOG ("Reading %s next buffer", MEDIA_TYPE_TO_STR (type));
if (type == GST_AVF_ASSET_READER_MEDIA_TYPE_AUDIO && audio_track != NULL) { if (type == GST_AVF_ASSET_READER_MEDIA_TYPE_AUDIO && audio_track != NULL) {
areader = audio_track; areader = audio_track;
caps = audio_caps;
} else if (type == GST_AVF_ASSET_READER_MEDIA_TYPE_VIDEO && } else if (type == GST_AVF_ASSET_READER_MEDIA_TYPE_VIDEO &&
video_track != NULL) { video_track != NULL) {
areader = video_track; areader = video_track;
caps = video_caps;
} }
if (areader == NULL) { if (areader == NULL) {