applemedia: atdec: destroy the queue if set_format fails

This commit is contained in:
Alessandro Decina 2013-07-24 09:18:43 +02:00
parent 10d02e381b
commit 95d5a8055b

View file

@ -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;
}