[MPlayer-dev-eng] [PATCH] Case INsensitive for file extensions

Morten Volden mvolden at tdcadsl.dk
Thu Aug 15 16:11:51 CEST 2002


Alexander Neundorf wrote:

>On Wednesday 14 August 2002 20:18, you wrote:
>
>>Hello
>>
>>First of all, thanx to all you hard working guys for this wonderful
>>player... :-)
>>
>>Attached below is a small patch which enables the Mplayer GUI to list
>>files with both upper and lower case file extensions (and permutations
>>thereof).
>>
>>Regards
>>
>>Morten Volden
>>
>
>Don't know how the actual code works, but wouldn't it be simpler to store all 
>extension in lower case and then convert the filenames into lowercase before 
>comparing ?
>

Hmmmm.... No, I don't think so. 

If I understand you correctly. 

Your solution:
-read all files
-find their extension
-convert to lower case
-compare

My solution:
-read all the wanted files using regular expressions.

Using the existing code, I think that my solution is the simplest.

Regards 

Morten Volden











More information about the MPlayer-dev-eng mailing list