Page 2 of 2

Bug in filename sent to external (winamp) player

Posted: Sun Mar 15, 2015 11:26 pm
by foo
On win 7 64 bit. MMW v 4.1.6.1736 portable.

I set Tools > Options > Player > choose player to be "winamp 2 or 5".

It correctly finds the location of my winamp installation of v2.91.

However, attempting to play an mp3 results in an error dialog that says: "Invalid file name - %s." This says to me either that your output routine for this message is not using "%s" correctly (i.e., not being edited into, but just used as a literal), OR, the routine that creates the filename to send to the external player is not editing into the %s item, and just using it as a literal. In either case, it probably means quotes around %s in your code somewhere that they shouldn't be, or left out the argument altogether.

For me, this is a deal killer, since I don't want to use your internal player in certain situations.

Note that all filenames are US ASCII in a local folder, so UNC is not being used.

The error message with "%s" indicates that this must be a trivial coding error. Probably someone put quotes around a %s editing string where they don't belong. Also, sending a file to winamp just requires editing the filename and app location into a string, and sending that to the OS to launch it. Direct communication with winamp is not required, and this particular task is trivial to implement.

http://stackoverflow.com/questions/9980 ... asic-level

Re: Get invalid file name error when using winamp as player

Posted: Mon Apr 06, 2015 10:39 am
by Peke
Just to let you all know I've Added http://www.ventismedia.com/mantis/view.php?id=12697