Mailing List archive

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

[vdr] AIO bug (was Re: MP3 Display Mode: Filename display?)



On 10 May 2002 Jan Grell <jan@grell-netz.de> wrote:

>> > The id3info.cache file also contains the "faked" title, but the OSD has only a blank line above the
>> > progress bar. :-(
>> I cannot reproduce this and I cannot find a reason for this in
>> the source. May be you could add some printf()'s to
> 
>> cMP3Control::ShowProgress() in mp3-menu.c and
> 
> After some debugging with printf's, I changed the line
>     asprintf(&buf,mode->Artist[0]?"%s - %s":"%s",mode->Artist,mode->Title);

This is an AIO change. The original line is:

      asprintf(&buf,mode->Artist[0]?"%s - %s":"%s",mode->Title,mode->Artist);

and this works without artist (mode->Title is quarantied to
contain at least the filename).

> into
>              if (mode->Artist[0]) {
>                asprintf(&buf,"%s - %s",mode->Artist,mode->Title);
>              } else {
>                asprintf(&buf,"%s",mode->Title);
>              }
> and now it works fine for me. I suppose, that the program took the empty "mode->Artist" instead of
> "mode->Title" in the case that "mode->Artist[0]?" got false.

-- 
Stefan Huelswitt
huels@iname.com  | http://home.pages.de/~nathan



Home | Main Index | Thread Index