mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
avaudenc: post better error message if experimental codecs don't work
https://bugzilla.gnome.org/show_bug.cgi?id=691617
This commit is contained in:
parent
49d0c480ae
commit
e9e31ebada
1 changed files with 10 additions and 0 deletions
|
@ -324,6 +324,16 @@ gst_ffmpegaudenc_set_format (GstAudioEncoder * encoder, GstAudioInfo * info)
|
|||
if (avcodec_get_context_defaults3 (ffmpegaudenc->context,
|
||||
oclass->in_plugin) < 0)
|
||||
GST_DEBUG_OBJECT (ffmpegaudenc, "Failed to set context defaults");
|
||||
|
||||
if ((oclass->in_plugin->capabilities & CODEC_CAP_EXPERIMENTAL) &&
|
||||
ffmpegaudenc->compliance != GST_FFMPEG_EXPERIMENTAL) {
|
||||
GST_ELEMENT_ERROR (ffmpegaudenc, LIBRARY, SETTINGS,
|
||||
("Codec is experimental, but settings don't allow encoders to "
|
||||
"produce output of experimental quality"),
|
||||
("This codec may not create output that is conformant to the specs "
|
||||
"or of good quality. If you must use it anyway, set the "
|
||||
"compliance property to experimental"));
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue