Mercurial > mplayer.hg
view mplayer.rc @ 11350:007ec48cf146
Current mplayer (mine is mplayer-1.0-pre1cvs20031001) cannot play mms
stream with multibyte characters in the url.
There is a bug in string_utf16() of libmpdemux/asf_mmst_streaming.c:
the url encoding code is written for single-byte character only. It
just fill a zero byte between every two adjacent bytes of the url
string. This is wrong when the url string contains multi-byte
characters.
My patch is in the attachment, and has been tested working. It uses
iconv() to convert the url's encoding to utf-16 correctly. So can this
patch be accepted and commit into CVS?
patch by Wang WenRui <wangwr@mail.ustc.edu.cn>
author | attila |
---|---|
date | Sat, 01 Nov 2003 14:43:28 +0000 |
parents | 08608b5bb39a |
children | 71cf4cc1a454 |
line wrap: on
line source
/*Windows resource file for MPlayer compile with windres -o resfile.o mplayer.rc and add resfile.o to OBJS_MPLAYER in Makefile*/ #include <winver.h> #include "version.h" 1 VERSIONINFO FILEVERSION 0,0,9,0 PRODUCTVERSION 0,0,9,0 FILEOS VOS__WINDOWS32 FILETYPE VFT_APP { BLOCK "StringFileInfo" { BLOCK "000004b0" // LANG_NEUTRAL,UNICODE_CP { VALUE "Comments","MPlayer is distributed under the terms of the GNU General Public License Version 2. Sourcecode is available at http://www.mplayerhq.hu\000" VALUE "CompanyName", "\000" VALUE "FileDescription", "MPlayer - Movie Player for Linux\000" VALUE "FileVersion",VERSION VALUE "InternalName", "Counter Counter\000" VALUE "LegalCopyright", " (C) 2000-2003 Arpad Gereoffy (see DOCS)\000" //VALUE "LegalTrademarks"," \000"; VALUE "OriginalFilename", "mplayer.exe\000" VALUE "ProductName", "MPlayer - Movie Player for Linux\000" VALUE "ProductVersion",VERSION //VALUE "SpecialBuild","\000" } } BLOCK "VarFileInfo" { VALUE "Translation",0,0x04b0 } } IDI_ICON1 ICON DISCARDABLE "etc/mplayer.ico"