>Patch accepted and committed to CVS.
Thanks.
>> Secondly, I have a problem with solely manifests itself on SPARC.
>> When I install the GTK based plugins, the plugin will start but the
>> mplayer window will have size 0; audio will be played but no image
>> is display. When I resize the window with a small command line tool
>> (it cannot be grabbed using a window manager so I needed to write
>> a small tool to resize a window by ID) the message start being display.
>> In some cases, it start to display when switching back and forth between
>> full-screen and normal mode; but that is not a given.
>
>The size of the window is handled around line 974 in plugin-threads.c
>
>make sure that when you mplayer runs a video it outputs a line like this
>
>VO: [x11] 512x384 => 512x384 Planar YV12
It does:
VO: [x11] 320x132 => 320x132 ARGB
(As told by truss when running under firefox).
Note that the version of mplayer and the plugin is exactly the same on
both.
But thanks for the pointer; perhaps that gets me a little bit further.
Ah yes, there it is:
amt = fread(&c, 1, 1, local_td->instance->player);
Endian issue. (A char is read but stored in the first byte of "int c";
fien for little endian but not so fine on big endian.)
Patch:
--- ./Source/plugin-threads.cpp.org Wed Aug 1 18:50:11 2007
+++ ./Source/plugin-threads.cpp Thu Aug 16 17:43:12 2007
@@ -821,8 +821,10 @@
if ((local_td->instance->cancelled == 0)
&& (local_td->instance->player != NULL)) {
+ char fc;
// c = fgetc(local_td->instance->player);
- amt = fread(&c, 1, 1, local_td->instance->player);
+ amt = fread(&fc, 1, 1, local_td->instance->player);
+ c = amt == 1 ? fc : EOF;
} else {
c = EOF;
amt = 0;
Casper
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.