mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +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:
|
||||
GST_ELEMENT_ERROR (atdec, STREAM, FORMAT, (NULL),
|
||||
("AudioQueueSetOfflineRenderFormat returned error: %d", status));
|
||||
gst_atdec_destroy_queue (atdec, FALSE);
|
||||
return FALSE;
|
||||
|
||||
start_error:
|
||||
GST_ELEMENT_ERROR (atdec, STREAM, FORMAT, (NULL),
|
||||
("AudioQueueStart returned error: %d", status));
|
||||
gst_atdec_destroy_queue (atdec, FALSE);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue