Commit e466c827 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Twolame: bump priority and accept mp2a fourcc

This restores compatibility with 1.1 command lines and docs

Close #6227
parent 43a501de
......@@ -73,7 +73,7 @@ static const char *const ppsz_stereo_descriptions[] =
vlc_module_begin ()
set_shortname( "Twolame")
set_description( N_("Libtwolame audio encoder") )
set_capability( "encoder", 50 )
set_capability( "encoder", 120 )
set_callbacks( OpenEncoder, CloseEncoder )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACODEC )
......@@ -132,6 +132,7 @@ static int OpenEncoder( vlc_object_t *p_this )
if( p_enc->fmt_out.i_codec != VLC_CODEC_MP2 &&
p_enc->fmt_out.i_codec != VLC_CODEC_MPGA &&
p_enc->fmt_out.i_codec != VLC_FOURCC( 'm', 'p', '2', 'a' ) &&
!p_enc->b_force )
{
return VLC_EGENERIC;
......
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