[MPlayer-users] how to play space contained uri on slave mode

jintonglei jintonglei at gmail.com
Mon Aug 20 15:15:59 CEST 2012


>In a recent project, I did pass filenames containing spaces to mplayer 
>via "loadfile". Right now I have no access to the sources to look how it 
>worked, but I presume it was something like double quotes (loadfile 
>"file name.mkv"). At least I can confirm that it definitely is possible.
>
Thank you for _ALL_YOU_ kindly reply!
Yes, the double quotes work well. My before test fail was caused by my media server side. 
I also tried modify stream/url.c: static void url_escape_string_part(char *outbuf, const char *inbuf)
{
	...
	if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')
				|| (c >= '0' && c <= '9') || (c >= 0x7f))
		{
			*outbuf++ = c;
		}
	...
		else if (c == 0x20) // ===========> here modified
		{
			*outbuf++ = c;
		}
   	...
}

BTW, my mplayer version is 1.0rc2-4.1.2. 

jintonglei



More information about the MPlayer-users mailing list