[MPlayer-dev-eng] [PATCH] Use avformat name matching rules
Alex Converse
alex.converse at gmail.com
Tue Jul 27 08:14:01 CEST 2010
On Tue, Jul 27, 2010 at 1:31 AM, Alex Converse <alex.converse at gmail.com> wrote:
> On Fri, Jul 16, 2010 at 5:23 PM, Reimar Döffinger
> <Reimar.Doeffinger at gmx.de> wrote:
>> On Fri, Jul 16, 2010 at 01:30:39PM -0400, Alex Converse wrote:
>>> I copy-pasted match_format() because I didn't want to open the can of
>>> worms that is making it public API.
>>
>> I'm not the maintainer so consider it a bystanders comment....
>> but I consider that kind of "solution" sweeping as sweeping lav* issues
>> "under the rug" and just updating the strings as necessary would at
>> least mean less code.
>> I expect distro packagers may have different opinions though.
>>
>>> - if (strcmp(*p, priv->avif->name) == 0)
>>> + if (match_format(*p, priv->avif->name))
>>
>> Depending on what name is supposed to be and what we are allowed to
>> assume what must stay the same without changing API,
>> just
>> len = strlen(*p);
>> strncmp(*p, priv->avif->name, len) == 0 &&
>> (priv->avif->name[len] == 0 || riv->avif->name[len] == ',')
>> might be possible as well.
>
> How's this?
>
10l: attached the wrong patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-min-avformat-match.diff
Type: text/x-patch
Size: 805 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100727/cc5e8113/attachment-0001.bin>
More information about the MPlayer-dev-eng
mailing list