mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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:
parent
f65b61fd53
commit
651cd8e0bb
1 changed files with 0 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue