gmediaserver-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gmediaserver-devel] gmediaserver with libmagic


From: address@hidden
Subject: Re: [gmediaserver-devel] gmediaserver with libmagic
Date: Wed, 06 Jan 2010 11:02:14 +0000

On Tue, 2010-01-05 at 22:22 -0800, Han wrote:
> so if the strings don't match 100%,  it will not find the correct file
> type. As shown above, libmagic seems have extra info in the string
> (i.e. charset), so it failed to match. 

Hi

Yeah, this is a problem, but there is a fix in cvs, in the metadata.c
file.

I think this is the code that removes the trailing charset binary

magic = strpbrk(magic_full, "; ");
    if (magic != NULL) {
        magic = xstrndup(magic_full, magic - magic_full);
    } else {
        magic = xstrdup(magic_full);
    }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]