PDA

View Full Version : Error playing Flac with $ in filename



Triode
2004-09-15, 15:09
Hi,

I seem to have a problem playing flacs with a "$" in the filename. Works
fine with "$" in the tags, but if it is in the filename, slimserver does not
seem to decode it. Platform is Mandrake 10, with Sept 14 nightly rpm
(though seen it prior to this). Flac en/decoder itself works fine if asked
to decode the filename correctly, so must be the way slimserver passes file
info to it

Debug source shows "end of file or error on socket".
Change the filename to drop the "$" and all is fine!

Broken:
2004-09-15 22:54:48.9840 openSong on:
file:///disk2/My%20Music/Barenaked%20Ladies/Gordon/14%20If%20I%20Had%20$1000000.flac
2004-09-15 22:54:49.0141 openSong: getting duration 266.933333333333, size
28212743, endian and offset 4767 for
file:///disk2/My%20Music/Barenaked%20Ladies/Gordon/14%20If%20I%20Had%20$1000000.flac
<snip>
2004-09-15 22:54:49.1599 Found command:
[flac] -dcs --force-raw-format --endian=little --sign=signed $FILE$
2004-09-15 22:54:49.1681 Matched Format: wav Type: flc Command:
[flac] -dcs --force-raw-format --endian=little --sign=signed $FILE$
2004-09-15 22:54:49.1733 openSong: this is an flc file:
file:///disk2/My%20Music/Barenaked%20Ladies/Gordon/14%20If%20I%20Had%20$1000000.flac
2004-09-15 22:54:49.1784 file type: flc format: wav inrate:
845.393886113886 maxRate: 0
2004-09-15 22:54:49.1834 command:
[flac] -dcs --force-raw-format --endian=little --sign=signed $FILE$
2004-09-15 22:54:49.1920 Using command for conversion:
"/usr/local/slimserver/Bin/i386-linux-thread-multi/flac" -dcs --force-raw-format
--endian=little --sign=signed "/disk2/My Music/Barenaked Ladies/Gordon/14
If I Had $1000000.flac" & |
2004-09-15 22:54:49.2337 Streaming with format: wav
2004-09-15 22:54:49.3051 00:04:20:05:59:f6 New play mode: play
2004-09-15 22:54:49.3430 00:04:20:05:59:f6: Current playmode: play
2004-09-15 22:54:50.0407 Read to end of file or pipe
2004-09-15 22:54:50.0474 end of file or error on socket, opening next song,
(song pos: 0(tell says: . ), totalbytes: 0)
2004-09-15 22:54:50.0522 opening next song...

OK:

2004-09-15 23:05:31.9956 openSong on:
file:///disk2/My%20Music/Barenaked%20Ladies/Gordon/14%20If%20I%20Had%201000000.flac
2004-09-15 23:05:32.0273 openSong: getting duration 266.933333333333, size
28212743, endian and offset 4767 for
file:///disk2/My%20Music/Barenaked%20Ladies/Gordon/14%20If%20I%20Had%201000000.flac
<snip>
2004-09-15 23:05:32.1703 Found command:
[flac] -dcs --force-raw-format --endian=little --sign=signed $FILE$
2004-09-15 23:05:32.1786 Matched Format: wav Type: flc Command:
[flac] -dcs --force-raw-format --endian=little --sign=signed $FILE$
2004-09-15 23:05:32.1838 openSong: this is an flc file:
file:///disk2/My%20Music/Barenaked%20Ladies/Gordon/14%20If%20I%20Had%201000000.flac
2004-09-15 23:05:32.1888 file type: flc format: wav inrate:
845.393886113886 maxRate: 0
2004-09-15 23:05:32.1938 command:
[flac] -dcs --force-raw-format --endian=little --sign=signed $FILE$
2004-09-15 23:05:32.2024 Using command for conversion:
"/usr/local/slimserver/Bin/i386-linux-thread-multi/flac" -dcs --force-raw-format
--endian=little --sign=signed "/disk2/My Music/Barenaked Ladies/Gordon/14
If I Had 1000000.flac" & |
2004-09-15 23:05:32.2441 Streaming with format: wav
2004-09-15 23:05:32.3274 00:04:20:05:59:f6 New play mode: play
2004-09-15 23:05:32.3655 00:04:20:05:59:f6: Current playmode: play
<continues to play>

Adrian

kdf
2004-09-15, 15:45
Hi Triode,

This is likely related to similar bugs on bugs.slimdevices.com:
http://bugs.slimdevices.com/show_bug.cgi?id=536
http://bugs.slimdevices.com/show_bug.cgi?id=42
http://bugs.slimdevices.com/show_bug.cgi?id=454

All seem to be special character related. You may want to add a note in one of
them that $ causes you a problem too, most likely in bug 454.

-kdf

Quoting Triode <triode1 (AT) btinternet (DOT) com>:

> Hi,
>
> I seem to have a problem playing flacs with a "$" in the filename. Works
> fine with "$" in the tags, but if it is in the filename, slimserver does not
> seem to decode it. Platform is Mandrake 10, with Sept 14 nightly rpm
> (though seen it prior to this). Flac en/decoder itself works fine if asked
> to decode the filename correctly, so must be the way slimserver passes file
> info to it
>
> Debug source shows "end of file or error on socket".
> Change the filename to drop the "$" and all is fine!

dean
2004-09-15, 17:07
I'm working on a fix for this. Should be addressed in the next nightly.

-dean

On Sep 15, 2004, at 3:45 PM, kdf wrote:

> Hi Triode,
>
> This is likely related to similar bugs on bugs.slimdevices.com:
> http://bugs.slimdevices.com/show_bug.cgi?id=536
> http://bugs.slimdevices.com/show_bug.cgi?id=42
> http://bugs.slimdevices.com/show_bug.cgi?id=454
>
> All seem to be special character related. You may want to add a note
> in one of
> them that $ causes you a problem too, most likely in bug 454.
>
> -kdf
>
> Quoting Triode <triode1 (AT) btinternet (DOT) com>:
>
>> Hi,
>>
>> I seem to have a problem playing flacs with a "$" in the filename.
>> Works
>> fine with "$" in the tags, but if it is in the filename, slimserver
>> does not
>> seem to decode it. Platform is Mandrake 10, with Sept 14 nightly rpm
>> (though seen it prior to this). Flac en/decoder itself works fine if
>> asked
>> to decode the filename correctly, so must be the way slimserver
>> passes file
>> info to it
>>
>> Debug source shows "end of file or error on socket".
>> Change the filename to drop the "$" and all is fine!
>
>