applemedia: atdec: destroy the queue if set_format fails
This commit is contained in:
parent
10d02e381b
commit
95d5a8055b
@ -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…
x
Reference in New Issue
Block a user