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/2046>
This commit is contained in:
Matthew Waters 2022-03-28 20:11:29 +11:00 committed by GStreamer Marge Bot
parent f65b61fd53
commit 651cd8e0bb

View file

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