[MPlayer-dev-eng] MPlayer-1.0pre4 and Direct Show Problem
S.Çağlar Onur
caglar at uludag.org.tr
Tue Nov 23 21:27:46 CET 2004
Hi;
If MPlayer-1.0pre4 tries to open "Microsoft ASF" file while system in
tr_TR.UTF-8 locale, it crashes with segmentation fault and can't play it
properly. But changing locale to "C" before run mplayer solves this problem.
This problem exists also in wine, and mplayer uses wine libraries to call
directshow decoder [ I'm not sure other decoders like quicktime have that
problem, ill test as soon as possible ].
English has only two, a lowercase dotted i and an uppercase dotless I. Turkish
has lowercase and uppercase forms of both dotted and dotless I. So this makes
a problem, while mplayer calles wine libraries.
http://www.i18nguy.com/unicode/turkish-i18n.html describes the problem
in "Why Applications Fail With The Turkish Language" section.
So i wrote a small patch. It changes system locale to "C" before the
directshow plugin initialize and revert to current locale after
initialization complete.
I saw some other locale change calles in mplayer source and it seems work fine
for me. What you think about this solution?
--
S.Çağlar Onur <caglar at uludag.org.tr>
http://cekirdek.uludag.org.tr/~caglar/
Linux is like living in a teepee. No Windows, no Gates and an Apache in house!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-1.0_pre4-locale.patch
Type: text/x-diff
Size: 1060 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041123/b7230894/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041123/b7230894/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list