[MPlayer-dev-eng] [PATCH] dvb: accept shorted case-insensitive names for channels

Roberto Togni rxt at rtogni.it
Sun Jun 10 20:59:57 CEST 2012

 this patch lets MPlayer accept a shorted case-insensitive name for a
 channel, as long as it's not ambiguous.

Eg. if you have two channels named "Abcd 1" and "Abef 5", you can
select the first one as "dvb://abc".

If you do "dvb://ab" instead, MPlayer will complain because your
selection is not unique.

The exact match always has higher priority, so if you have channels
named "abc" and "Abc" you can select the second with no problem.

The patch as is now stops the search as soon as it's clear that the
input matches more than one channel; maybe it's better to complete the
scan and report all the names that match the input. Opinions?

Will commit in a few days if no complaints.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvb.diff
Type: text/x-patch
Size: 1169 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120610/89247e03/attachment.bin>

More information about the MPlayer-dev-eng mailing list