mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
applemedia: atdec: destroy the queue if set_format fails
This commit is contained in:
parent
10d02e381b
commit
95d5a8055b
1 changed files with 2 additions and 0 deletions
|
@ -329,11 +329,13 @@ create_queue_error:
|
||||||
set_format_error:
|
set_format_error:
|
||||||
GST_ELEMENT_ERROR (atdec, STREAM, FORMAT, (NULL),
|
GST_ELEMENT_ERROR (atdec, STREAM, FORMAT, (NULL),
|
||||||
("AudioQueueSetOfflineRenderFormat returned error: %d", status));
|
("AudioQueueSetOfflineRenderFormat returned error: %d", status));
|
||||||
|
gst_atdec_destroy_queue (atdec, FALSE);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
start_error:
|
start_error:
|
||||||
GST_ELEMENT_ERROR (atdec, STREAM, FORMAT, (NULL),
|
GST_ELEMENT_ERROR (atdec, STREAM, FORMAT, (NULL),
|
||||||
("AudioQueueStart returned error: %d", status));
|
("AudioQueueStart returned error: %d", status));
|
||||||
|
gst_atdec_destroy_queue (atdec, FALSE);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue