[MPlayer-dev-eng] [PATCH]Allow lower-case for disable-decoder

Diego Biurrun diego at biurrun.de
Tue Sep 8 11:23:52 CEST 2009


On Thu, Sep 03, 2009 at 10:43:29AM +0200, Carl Eugen Hoyos wrote:
> 
> Attached patch allows the user to use lower-case when disabling decoders (or 
> muxers etc.).

I suppose this makes life easier for users, so I don't object.

> --- configure	(revision 29638)
> +++ configure	(working copy)
> @@ -1149,16 +1149,16 @@
>    --enable-libopencore_amrwb)	_libopencore_amrwb=yes	;;
>    --disable-libopencore_amrwb)	_libopencore_amrwb=no	;;
> -  --enable-decoder=*)	_libavdecoders="$_libavdecoders $(echo $ac_option | cut -d '=' -f 2)" ;;
> +  --enable-decoder=*)  _libavdecoders="$_libavdecoders $(echo $ac_option | cut -d '=' -f 2 | tr '[a-z]' '[A-Z]')" ;;
> -  --disable-decoder=*)	_libavdecoders=$(echo $_libavdecoders | sed "s/$(echo $ac_option | cut -d '=' -f 2)//g") ;;
> +  --disable-decoder=*) _libavdecoders=$(echo $_libavdecoders | sed "s/$(echo $ac_option | cut -d '=' -f 2 | tr '[a-z]' '[A-Z]')//g") ;;

All of this should be refactored at some point, *sigh*.

Diego



More information about the MPlayer-dev-eng mailing list