Commit 28537dc7 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

audioencoder: avoid setting output caps twice

... which may not be handled or appreciated well downstream,
e.g. muxers only performing header setup once.
parent f1c583bd
......@@ -2530,6 +2530,9 @@ gst_audio_encoder_set_output_format (GstAudioEncoder * enc, GstCaps * caps)
if (!res)
goto done;
/* clear reconfigure so we don't set caps twice */
gst_pad_check_reconfigure (enc->srcpad);
query = gst_query_new_allocation (caps, TRUE);
if (!gst_pad_peer_query (enc->srcpad, query)) {
GST_DEBUG_OBJECT (enc, "didn't get downstream ALLOCATION hints");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment