mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
omxaacdec: Do not accept unknown layouts
It was defaulting to RAW when an unknown layout was received but the caps template would actually forbid that on the caps query or accept-caps anyway.
This commit is contained in:
parent
1f3bf04fe7
commit
03fc454457
1 changed files with 4 additions and 2 deletions
|
@ -148,8 +148,10 @@ gst_omx_aac_dec_set_format (GstOMXAudioDec * dec, GstOMXPort * port,
|
|||
aac_param.eAACStreamFormat = OMX_AUDIO_AACStreamFormatADIF;
|
||||
else if (strcmp (stream_format, "raw") == 0)
|
||||
aac_param.eAACStreamFormat = OMX_AUDIO_AACStreamFormatRAW;
|
||||
else /* fallback instead of failing */
|
||||
aac_param.eAACStreamFormat = OMX_AUDIO_AACStreamFormatRAW;
|
||||
else {
|
||||
GST_ERROR_OBJECT (self, "Unexpected format: %s", stream_format);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
err =
|
||||
gst_omx_component_set_parameter (dec->dec, OMX_IndexParamAudioAac,
|
||||
|
|
Loading…
Reference in a new issue