bhzhu203 / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
GNU General Public License v2.0
1 stars 0 forks source link

FreeBSD Port #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

gnome-mplayer is totally awesome, but I cant get it to work properly on
FreeBSD. It would be really cool if there would be a FreeBSD Port.

Original issue reported on code.google.com by army.of....@gmail.com on 14 Nov 2008 at 10:52

GoogleCodeExporter commented 8 years ago
Details please. The code should compile on FreeBSD without much effort.

Original comment by kdeko...@gmail.com on 14 Nov 2008 at 11:15

GoogleCodeExporter commented 8 years ago
I get this (i installed it in a non std location):

#> ./bin/gnome-mplayer --reallyverbose ~/Desktop/Media/movie.avi
GNOME MPlayer v0.9.2
Running with GIO support
Using volume of 0 from gnome-mplayer preference
vo = xv ao = oss
opening /home/user/Desktop/Media/movie.avi
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0
/home/user/Desktop/Media/movie.avi is not a device name
playlist detection = 0
file:///home/user/Desktop/Media/movie.avi is not a device name
file:///home/user/Desktop/Media/movie.avi is not a device name
Streaming media 'file:///home/user/Desktop/Media/movie.avi' = 0
file:///home/user/Desktop/Media/movie.avi is not a device name
getting file metadata for /home/user/Desktop/Media/movie.avi
playing - file:///home/user/Desktop/Media/movie.avi
is playlist 0
file:///home/user/Desktop/Media/movie.avi is not a device name
file:///home/user/Desktop/Media/movie.avi is not a device name
Streaming media 'file:///home/user/Desktop/Media/movie.avi' = 0
/home/user/Desktop/Media/movie.avi is not a device name
/home/user/Desktop/Media/movie.avi is not a device name
Streaming media '/home/user/Desktop/Media/movie.avi' = 0
file:///home/user/Desktop/Media/movie.avi is not a device name
Streaming media 'file:///home/user/Desktop/Media/movie.avi' = 0
/usr/local/bin/mplayer -profile gnome-mplayer -slave -identify -framedrop 
-vf-pre
yadif,softskip,scale -noconsolecontrols -osdlevel 0 -nomouseinput -cache 2000 
-wid
0x2e00074 -ass -embeddedfonts -ass-font-scale 1.0 -ass-force-style FontName=Sans
-ass-color ffffff00 -vf-add screenshot /home/user/Desktop/Media/movie.avi 
Spawn succeeded for filename /home/user/Desktop/Media/movie.avi
Thread completing
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Proxy connections and Command connected
send command = seek 0 0

send command = quit

send command = seek 0 2
pause

Original comment by army.of....@gmail.com on 15 Nov 2008 at 1:43

GoogleCodeExporter commented 8 years ago
Might try disabling Alpha Substation Subtitle support in the Preferences and 
see if
that helps.. if not run this from the command line

/usr/local/bin/mplayer -profile gnome-mplayer -slave -identify -framedrop 
-vf-pre
yadif,softskip,scale -noconsolecontrols -osdlevel 0 -nomouseinput -cache 2000 
-ass
-embeddedfonts -ass-font-scale 1.0 -ass-force-style FontName=Sans
-ass-color ffffff00 -vf-add screenshot /home/user/Desktop/Media/movie.avi 

And see what that says

Original comment by kdeko...@gmail.com on 15 Nov 2008 at 2:02

GoogleCodeExporter commented 8 years ago
Hi, disabling ASS in gnome-mplayer doesn't help, but the mplayer line does:

#> /usr/local/bin/mplayer -profile gnome-mplayer -slave -identify -framedrop 
-vf-pre
yadif,softskip,scale -noconsolecontrols -osdlevel 0 -nomouseinput -cache 2000 
-ass
-embeddedfonts -ass-font-scale 1.0 -ass-force-style FontName=Sans -ass-color 
ffffff00
-vf-add screenshot ~/Desktop/Media/movie.avi
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (Family: 15, Model: 67, 
Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing /home/user/Desktop/Media/movie.avi.
Cache fill:  0.00% (0 bytes)   
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  624x352  24bpp  23.976 fps  1081.4 kbps (132.0 kbyte/s)
Clip info:
 Software: transcode-1.0.2
ID_CLIP_INFO_NAME0=Software
ID_CLIP_INFO_VALUE0=transcode-1.0.2
ID_CLIP_INFO_N=1
SUB: Detected subtitle file format: subviewer
SUB: Read 653 subtitles.
ID_FILE_SUB_ID=0
ID_FILE_SUB_FILENAME=/home/user/Desktop/Media/movie.srt
SUB: Added subtitle file (1): /home/user/Desktop/Media/movie.srt
ID_FILENAME=/home/user/Desktop/Media/movie.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=XVID
ID_VIDEO_BITRATE=1081432
ID_VIDEO_WIDTH=624
ID_VIDEO_HEIGHT=352
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=132360
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=2387.80
xscreensaver_disable: Could not find XScreenSaver window.
dcop: not found
[ass] auto-open
Opening video filter: [screenshot]
Opening video filter: [eq2]
Opening video filter: [scale]
Opening video filter: [softskip]
Opening video filter: [yadif]
[ass] Init
[ass] Updating font cache.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ID_VIDEO_CODEC=ffodivx
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
mpg123: Can't rewind stream by 131 bits!
AUDIO: 48000 Hz, 2 ch, s16le, 112.0 kbit/7.29% (ratio: 14000->192000)
ID_AUDIO_BITRATE=112000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=mp3
Starting playback...
VDec: vo config request - 624 x 352 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7727
[swscaler @ 0x884ec50]SwScaler: using unscaled yuv420p -> yuv420p special 
converter
VO: [xv] 624x352 => 624x352 Planar YV12 
[ass] PlayResX undefined, setting 511.02   2/  2 ??% ??% ??,?% 0 0 97% 
[ass] fontconfig: Selected font family is not the requested one: 'Bitstream Vera
Sans' != 'Sans'
A:  25.8 V:  25.8 A-V:  0.000 ct:  0.027 619/619  5% 11%  0.7% 0 0 48% 
Exiting... (Quit)

Original comment by army.of....@gmail.com on 15 Nov 2008 at 2:13

GoogleCodeExporter commented 8 years ago
I mean, the mplayer line works, it plays fine and even shows the subtitles :)

Original comment by army.of....@gmail.com on 15 Nov 2008 at 2:17

GoogleCodeExporter commented 8 years ago
Hum, I'm kinda stumped on it... perhaps try x11 as the vo? Maybe xv doesn't 
like to
be embedded?

Original comment by kdeko...@gmail.com on 15 Nov 2008 at 4:30

GoogleCodeExporter commented 8 years ago
X11 and gl as vo doesn't do it, same thing (gui starts up and does nothing)
Do some files have to be at special places (mplayer profile)? Im running it in 
some
temp folder.

Here more output:

#> ./bin/gnome-mplayer --reallyverbose ~/Desktop/Media/movie.avi
GNOME MPlayer v0.9.2
Running with GIO support
Using volume of 0 from gnome-mplayer preference
vo = x11 ao = oss
opening /home/user/Desktop/Media/movie.avi
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0
/home/user/Desktop/Media/movie.avi is not a device name
playlist detection = 0
file:///home/user/Desktop/Media/movie.avi is not a device name
file:///home/user/Desktop/Media/movie.avi is not a device name
Streaming media 'file:///home/user/Desktop/Media/movie.avi' = 0
file:///home/user/Desktop/Media/movie.avi is not a device name
getting file metadata for /home/user/Desktop/Media/movie.avi
playing - file:///home/user/Desktop/Media/movie.avi
is playlist 0
file:///home/user/Desktop/Media/movie.avi is not a device name
file:///home/user/Desktop/Media/movie.avi is not a device name
Streaming media 'file:///home/user/Desktop/Media/movie.avi' = 0
/home/user/Desktop/Media/movie.avi is not a device name
/home/user/Desktop/Media/movie.avi is not a device name
Streaming media '/home/user/Desktop/Media/movie.avi' = 0
file:///home/user/Desktop/Media/movie.avi is not a device name
Streaming media 'file:///home/user/Desktop/Media/movie.avi' = 0
/usr/local/bin/mplayer -profile gnome-mplayer -slave -identify -softvol
-noconsolecontrols -osdlevel 0 -nomouseinput -cache 2000 -wid 0x2800074
-subfont-text-scale 5 -subfont Sans -vf-add screenshot
/home/user/Desktop/Media/movie.avi 
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Proxy connections and Command connected
Spawn succeeded for filename /home/user/Desktop/Media/movie.avi
Thread completing
send command = seek 0 0

shutting down threadquery for /home/user/Desktop/Media/movie.avi since
threaddata->done is TRUE
send command = quit

send command = seek 0 2
pause

Original comment by army.of....@gmail.com on 15 Nov 2008 at 4:44

GoogleCodeExporter commented 8 years ago
No I don;t think the location matters, as I run it out of the SVN directory, 
what I
think is going in, is that the secondary g_mutex_lock in launch_player 
(thread.c) at
line 931 is not locking and the code is going right thru. Can you do some 
research
and see if there are any issues with g_mutex_lock on freebsd?

Original comment by kdeko...@gmail.com on 15 Nov 2008 at 4:52

GoogleCodeExporter commented 8 years ago
I really would like to help, but i have no idea of gtk stuff and c at all.
Is there maybe a hacky workaroud, just to look if thats the problem ?

Original comment by army.of....@gmail.com on 15 Nov 2008 at 5:03

GoogleCodeExporter commented 8 years ago
Can you retest with SVN and the --reallyverbose option, I added some more 
debugging
around the locks to see if that was the problem. Also can you make sure that 
your
glib is compiled with thread (pthread?) support. It should be, but just 
something to
check.

Original comment by kdeko...@gmail.com on 15 Nov 2008 at 5:27

GoogleCodeExporter commented 8 years ago
Here my output:

> ./bin/gnome-mplayer --reallyverbose ~/Desktop/Media/movie.avi
GNOME MPlayer v0.9.2
Running with GIO support
Using volume of 0 from gnome-mplayer preference
vo = x11 ao = oss
opening /home/user/Desktop/Media/movie.avi
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0
/home/user/Desktop/Media/movie.avi is not a device name
playlist detection = 0
file:///home/user/Desktop/Media/movie.avi is not a device name
file:///home/user/Desktop/Media/movie.avi is not a device name
Streaming media 'file:///home/user/Desktop/Media/movie.avi' = 0
file:///home/user/Desktop/Media/movie.avi is not a device name
getting file metadata for /home/user/Desktop/Media/movie.avi
playing - file:///home/user/Desktop/Media/movie.avi
is playlist 0
file:///home/user/Desktop/Media/movie.avi is not a device name
file:///home/user/Desktop/Media/movie.avi is not a device name
Streaming media 'file:///home/user/Desktop/Media/movie.avi' = 0
/home/user/Desktop/Media/movie.avi is not a device name
/home/user/Desktop/Media/movie.avi is not a device name
Streaming media '/home/user/Desktop/Media/movie.avi' = 0
file:///home/user/Desktop/Media/movie.avi is not a device name
Streaming media 'file:///home/user/Desktop/Media/movie.avi' = 0
/usr/local/bin/mplayer -profile gnome-mplayer -slave -identify -softvol
-noconsolecontrols -osdlevel 0 -nomouseinput -cache 2000 -wid 0x2c00074
-subfont-text-scale 5 -subfont Sans -vf-add screenshot
/home/user/Desktop/Media/movie.avi 
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Proxy connections and Command connected
Spawn succeeded for filename /home/user/Desktop/Media/movie.avi
About to lock second time, next message about thread running, should be 
unlocking
Thread completing
thread running, in second lock
send command = seek 0 0

thread running, before unlocking second time
thread running, unlocked second time
shutting down threadquery for /home/user/Desktop/Media/movie.avi since
threaddata->done is TRUE
send command = quit

send command = seek 0 2
pause

Original comment by army.of....@gmail.com on 15 Nov 2008 at 11:01

GoogleCodeExporter commented 8 years ago
How do i check if glib has thread support?

The Makefile
(http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/glib20/Makefile?rev=1.153) 
in the
FreeBSD Portstree looks like it has.

Original comment by army.of....@gmail.com on 15 Nov 2008 at 11:12

GoogleCodeExporter commented 8 years ago
The more I look at your logs it looks like mplayer just is not starting... 
In your above log you see the 'send command = seek 0 0' and right after that you
should see mplayer data coming out...  like below. perhaps you should try 
upgrading
mplayer?

Proxy connections and Command connected
send command = seek 0 0

thread reader: MPlayer dev-SVN-r27903-4.3.0 (C) 2000-2008 MPlayer Team
thread reader: CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (Family: 6,
Model: 15, Stepping: 11)
thread reader: CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
thread reader: Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
thread reader: 
thread reader: Playing /home/kdekorte/Videos/bass.avi.
thread reader: Cache fill: 18.88% (966656 bytes)   
thread reader: AVI file format detected.
thread reader: ID_VIDEO_ID=0
thread reader: [aviheader] Video stream found, -vid 0
thread reader: AVI: No audio stream found -> no sound.
thread reader: VIDEO:  [IV50]  320x240  24bpp  30.000 fps  1101.4 kbps (134.4 
kbyte/s)

Original comment by kdeko...@gmail.com on 16 Nov 2008 at 3:37

GoogleCodeExporter commented 8 years ago
Also it appears you are using a 'custom' mplayer command. Can you try removing 
that
out of the preferences and adding /usr/local/bin to the path.

Original comment by kdeko...@gmail.com on 16 Nov 2008 at 3:41

GoogleCodeExporter commented 8 years ago
Hm, mplayer is in PATH. No matter what i put in the mplayer cmd field in the
settings, it doesn't work.

I replaced line 714 to 718 in thread.c with:

    argv[arg++] = g_strdup_printf("xterm");
    argv[arg++] = g_strdup_printf("-e");
    argv[arg++] = g_strdup_printf("mplayer");

and now it opens a xterm, in which mplayer is actually running and in the
gnome-mplayer window there is a VERY small video playing, sound works, the 
controls
aren't

Original comment by army.of....@gmail.com on 16 Nov 2008 at 4:03

GoogleCodeExporter commented 8 years ago
Yes in that situation the controls won't work due to the slave interface being
blocked use to the usage of xterm. 

I'm not sure what this is telling me, as I never has seen this issue before. I 
don't
have a FreeBSD machine, so I can't really help debug it either. Again I would 
suggest
upgrading mplayer to a more recent version. 

Original comment by kdeko...@gmail.com on 16 Nov 2008 at 7:16

GoogleCodeExporter commented 8 years ago
I just recompiles mplayer, should be really new now.
#> mplayer -v
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team

Do some options need to be activeted ?

Can we capture the stdout and stderr of mplayer somehow?

Original comment by army.of....@gmail.com on 16 Nov 2008 at 8:03

GoogleCodeExporter commented 8 years ago
mplayer 1.0rc2 is very old, about 14months. I would recommend that you get 
mplayer
from SVN. The mplayer project is not doing releases right now and they recommend
using SVN.

The --reallyverbose option captures and prints all the output from mplayer.

Original comment by kdeko...@gmail.com on 19 Nov 2008 at 5:19

GoogleCodeExporter commented 8 years ago
Hello,
I've the same problem trying to port gnome-mplayer to OpenBSD (4.4-current). I 
can
help debugging this, doing tests, etc... Please, let me know.

Regards
-david-

Original comment by dco...@gmail.com on 12 Jan 2009 at 11:29

GoogleCodeExporter commented 8 years ago
Can you try this patch and see if it helps?

Index: src/thread.c
===================================================================
--- src/thread.c    (revision 1095)
+++ src/thread.c    (working copy)
@@ -697,7 +697,8 @@
     gchar *fontname;
     gchar *size;
     gchar *buffer;
-
+   GIOFlags flags;
+   
     ThreadData *threaddata = (ThreadData *) data;

     videopresent = 0;
@@ -988,6 +989,13 @@

         channel_in = g_io_channel_unix_new(std_out);
         channel_err = g_io_channel_unix_new(std_err);
+       flags = g_io_channel_get_flags(channel_in);
+       flags |= G_IO_FLAG_NONBLOCK;
+       g_io_channel_set_flags(channel_in,flags,NULL);
+       flags = g_io_channel_get_flags(channel_err);
+       flags |= G_IO_FLAG_NONBLOCK;
+       g_io_channel_set_flags(channel_err,flags,NULL);
+       
         g_io_channel_set_close_on_unref(channel_in, TRUE);
         g_io_channel_set_close_on_unref(channel_err, TRUE);

I found something like this in the mplayerplug-in code.

Original comment by kdeko...@gmail.com on 12 Jan 2009 at 1:40

GoogleCodeExporter commented 8 years ago
Hm, I tried it on FreeBSD again, with a SVN Snapshot (dev-SVN-r28208-4.2.1) and 
the
same thing happens. The Patch from Comment 20 is applied.
#### OUTPUT ####
> ./gnome-mplayer --reallyverbose ../../test.wmv

(gnome-mplayer:18522): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
GNOME MPlayer v0.9.3
Running with GIO support
Using volume of 0 from gnome-mplayer preference
vo = xv ao = oss
opening ../../test.wmv
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0
../../test.wmv is not a device name
file:///usr/home/user/Desktop/test.wmv is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.wmv' = 0
opening playlist
playlist detection = 0
adding file:///usr/home/user/Desktop/test.wmv to playlist
file:///usr/home/user/Desktop/test.wmv is not a device name
file:///usr/home/user/Desktop/test.wmv is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.wmv' = 0
file:///usr/home/user/Desktop/test.wmv is not a device name
getting file metadata for /usr/home/user/Desktop/test.wmv
playing - file:///usr/home/user/Desktop/test.wmv
is playlist 0
file:///usr/home/user/Desktop/test.wmv is not a device name
file:///usr/home/user/Desktop/test.wmv is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.wmv' = 0
/usr/home/user/Desktop/test.wmv is not a device name
/usr/home/user/Desktop/test.wmv is not a device name
Streaming media '/usr/home/user/Desktop/test.wmv' = 0
file:///usr/home/user/Desktop/test.wmv is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.wmv' = 0
/home/user/Desktop/mplayer-checkout-2008-12-30/install/bin/mplayer -profile
gnome-mplayer -slave -identify -noconsolecontrols -osdlevel 0 -nomouseinput 
-nocache
-wid 0x2e000aa -subfont-text-scale 5 -subfont Sans -vf-add screenshot
/usr/home/user/Desktop/test.wmv 
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Proxy connections and Command connected
Spawn succeeded for filename /usr/home/user/Desktop/test.wmv
About to lock second time, next message about thread running, should be 
unlocking
Thread completing
thread running, in second lock
thread running, before unlocking second time
thread running, unlocked second time
send command = seek 0 0

shutting down threadquery for /usr/home/user/Desktop/test.wmv since 
threaddata->done
is TRUE
send command = quit

send command = seek 0 2
pause

Original comment by army.of....@gmail.com on 12 Jan 2009 at 7:06

GoogleCodeExporter commented 8 years ago
It still appears to me that mplayer is not launching or is being launched and
terminated immediately. 

Original comment by kdeko...@gmail.com on 12 Jan 2009 at 7:50

GoogleCodeExporter commented 8 years ago
Can you apply this patch and then just start gnome-mplayer with the -v option 
and
post what the output is?

Index: src/main.c
===================================================================
--- src/main.c  (revision 1104)
+++ src/main.c  (working copy)
@@ -684,6 +684,9 @@
     if (!g_thread_supported())
         g_thread_init(NULL);

+   if (verbose)
+       printf("Threading support enabled = %i\n",g_thread_supported());
+   
     if (rpconsole == NULL)
         rpconsole = g_strdup("NONE");

Original comment by kdeko...@gmail.com on 12 Jan 2009 at 8:11

GoogleCodeExporter commented 8 years ago
> gnome-mplayer -v /home/user/Desktop/test.avi

GNOME MPlayer v0.9.3
Running with GIO support
Using volume of 0 from gnome-mplayer preference
Threading support enabled = 1
vo = xv ao = oss
opening /home/user/Desktop/test.avi
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0
opening playlist
playlist detection = 0
adding file:///home/user/Desktop/test.avi to playlist
getting file metadata for /home/user/Desktop/test.avi
playing - file:///home/user/Desktop/test.avi
is playlist 0
/home/user/Desktop/mplayer-checkout-2008-12-30/install/bin/mplayer -profile
gnome-mplayer -quiet -slave -identify -noconsolecontrols -osdlevel 0 
-nomouseinput
-nocache -wid 0x30000aa -subfont-text-scale 5 -subfont Sans -vf-add screenshot
/home/user/Desktop/test.avi 
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
Spawn succeeded for filename /home/user/Desktop/test.avi
Thread completing
shutting down threadquery for /home/user/Desktop/test.avi since 
threaddata->done is TRUE

Original comment by army.of....@gmail.com on 14 Jan 2009 at 1:39

GoogleCodeExporter commented 8 years ago
Ok, I put in some more debugging info into SVN. please run this test

gnome-mplayer --reallyverbose /home/user/Desktop/test.avi

After updating from SVN.

Original comment by kdeko...@gmail.com on 14 Jan 2009 at 11:02

GoogleCodeExporter commented 8 years ago
just checked svn out, still not working. Output:

with mplayer snapshot:
######################
> ./gnome-mplayer --reallyverbose ../../test.avi
GNOME MPlayer v0.9.4
Running with GIO support
Using volume of 0 from gnome-mplayer preference
vo = xv ao = oss
opening ../../test.avi
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0
../../test.avi is not a device name
file:///usr/home/user/Desktop/test.avi is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.avi' = 0
opening playlist
playlist detection = 0
adding file:///usr/home/user/Desktop/test.avi to playlist
file:///usr/home/user/Desktop/test.avi is not a device name
file:///usr/home/user/Desktop/test.avi is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.avi' = 0
file:///usr/home/user/Desktop/test.avi is not a device name
getting file metadata for /usr/home/user/Desktop/test.avi
playing - file:///usr/home/user/Desktop/test.avi
is playlist 0
file:///usr/home/user/Desktop/test.avi is not a device name
file:///usr/home/user/Desktop/test.avi is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.avi' = 0
/usr/home/user/Desktop/test.avi is not a device name
/usr/home/user/Desktop/test.avi is not a device name
Streaming media '/usr/home/user/Desktop/test.avi' = 0
file:///usr/home/user/Desktop/test.avi is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.avi' = 0
/usr/home/user/Desktop/mplayer/bin/mplayer -profile gnome-mplayer -slave 
-identify
-noconsolecontrols -osdlevel 0 -nomouseinput -nocache -wid 0x30000aa
-subfont-text-scale 5 -subfont Sans -vf-add screenshot 
/usr/home/user/Desktop/test.avi 
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
Spawn succeeded for filename /usr/home/user/Desktop/test.avi
About to lock second time, next message about thread running, should be 
unlocking
Thread completing
thread running, in second lock
send command = seek 0 0

thread running, before unlocking second time
thread running, unlocked second time
shutting down threadquery for /usr/home/user/Desktop/test.avi since 
threaddata->done
is TRUE
send command = quit

send command = seek 0 2
pause

######################################################

with mplayer 1.0RC2:
####################
> ./gnome-mplayer --reallyverbose ../../test.avi
GNOME MPlayer v0.9.4
Running with GIO support
Using volume of 0 from gnome-mplayer preference
vo = xv ao = oss
opening ../../test.avi
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0
../../test.avi is not a device name
file:///usr/home/user/Desktop/test.avi is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.avi' = 0
opening playlist
playlist detection = 0
adding file:///usr/home/user/Desktop/test.avi to playlist
file:///usr/home/user/Desktop/test.avi is not a device name
file:///usr/home/user/Desktop/test.avi is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.avi' = 0
file:///usr/home/user/Desktop/test.avi is not a device name
getting file metadata for /usr/home/user/Desktop/test.avi
playing - file:///usr/home/user/Desktop/test.avi
is playlist 0
file:///usr/home/user/Desktop/test.avi is not a device name
file:///usr/home/user/Desktop/test.avi is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.avi' = 0
/usr/home/user/Desktop/test.avi is not a device name
/usr/home/user/Desktop/test.avi is not a device name
Streaming media '/usr/home/user/Desktop/test.avi' = 0
file:///usr/home/user/Desktop/test.avi is not a device name
Streaming media 'file:///usr/home/user/Desktop/test.avi' = 0
mplayer -profile gnome-mplayer -slave -identify -noconsolecontrols -osdlevel 0
-nomouseinput -nocache -wid 0x34000aa -subfont-text-scale 5 -subfont Sans 
-vf-add
screenshot /usr/home/user/Desktop/test.avi 
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
Spawn succeeded for filename /usr/home/user/Desktop/test.avi
About to lock second time, next message about thread running, should be 
unlocking
Thread completing
thread running, in second lock
send command = seek 0 0

thread running, before unlocking second time
thread running, unlocked second time
shutting down threadquery for /usr/home/user/Desktop/test.avi since 
threaddata->done
is TRUE
send command = quit

send command = seek 0 2
pause

Original comment by army.of....@gmail.com on 18 Jan 2009 at 3:53

GoogleCodeExporter commented 8 years ago
Can you post the output of this...

mplayer -profile gnome-mplayer -slave -identify -noconsolecontrols -osdlevel 0
-nomouseinput -nocache -wid 0x34000aa -subfont-text-scale 5 -subfont Sans 
-vf-add
screenshot /usr/home/user/Desktop/test.avi 

Original comment by kdeko...@gmail.com on 20 Jan 2009 at 5:39

GoogleCodeExporter commented 8 years ago
With the mplayer 1.0RC2:

> mplayer -profile gnome-mplayer -slave -identify -noconsolecontrols -osdlevel 0
-nomouseinput -nocache -wid 0x34000aa -subfont-text-scale 5 -subfont Sans 
-vf-add
screenshot Desktop/test.avi
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (Family: 15, Model: 67, 
Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing Desktop/test.avi.
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  640x360  12bpp  30.000 fps  1190.9 kbps (145.4 kbyte/s)
Clip info:
 Software: MEncoder 1.0rc2-4.0.1
ID_CLIP_INFO_NAME0=Software
ID_CLIP_INFO_VALUE0=MEncoder 1.0rc2-4.0.1
ID_CLIP_INFO_N=1
ID_FILENAME=Desktop/test.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=XVID
ID_VIDEO_BITRATE=1190856
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=360
ID_VIDEO_FPS=30.000
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=156848
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=1190.80
xscreensaver_disable: Could not find XScreenSaver window.
dcop: not found
Opening video filter: [screenshot]
Opening video filter: [eq2]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ID_VIDEO_CODEC=ffodivx
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 32.0 kbit/2.08% (ratio: 4000->192000)
ID_AUDIO_BITRATE=32000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=mp3
Starting playback...
VDec: vo config request - 640 x 360 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
[swscaler @ 0x87e15d0]SwScaler: using unscaled yuv420p -> bgr24 special 
converter
VO: [xv] 640x360 => 640x360 Planar YV12 
X11 error: BadWindow (invalid Window parameter)
X11 error: BadWindow (invalid Window parameter)
X11 error: BadWindow (invalid Window parameter)
X11 error: BadWindow (invalid Window parameter)
X11 error: BadDrawable (invalid Pixmap or Window parameter)
[the last one repeats]

Original comment by army.of....@gmail.com on 21 Jan 2009 at 7:31

GoogleCodeExporter commented 8 years ago
the temporary compiled mplayer from svn:

> Desktop/mplayer/bin/mplayer -profile gnome-mplayer -slave -identify
-noconsolecontrols -osdlevel 0 -nomouseinput -nocache -wid 0x34000aa
-subfont-text-scale 5 -subfont Sans -vf-add screenshot Desktop/test.avi
MPlayer SVN-r28340 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (Family: 15, Model: 67, 
Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Playing Desktop/test.avi.
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  640x360  12bpp  30.000 fps  1190.9 kbps (145.4 kbyte/s)
Clip info:
 Software: MEncoder 1.0rc2-4.0.1
ID_CLIP_INFO_NAME0=Software
ID_CLIP_INFO_VALUE0=MEncoder 1.0rc2-4.0.1
ID_CLIP_INFO_N=1
ID_FILENAME=Desktop/test.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=XVID
ID_VIDEO_BITRATE=1190856
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=360
ID_VIDEO_FPS=30.000
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=156848
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=1190.80
ID_SEEKABLE=1
ID_CHAPTERS=0
Opening video filter: [screenshot]
Opening video filter: [eq2]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ID_VIDEO_CODEC=ffodivx
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 32.0 kbit/2.08% (ratio: 4000->192000)
ID_AUDIO_BITRATE=32000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=mp3
Starting playback...
VDec: vo config request - 640 x 360 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
[swscaler @ 0x87ef1a0]No accelerated colorspace conversion found.
[swscaler @ 0x87ef1a0]using unscaled yuv420p -> rgb24 special converter
VO: [xv] 640x360 => 640x360 Planar YV12 
X11 error: BadDrawable (invalid Pixmap or Window parameter)
X11 error: BadWindow (invalid Window parameter)
X11 error: BadWindow (invalid Window parameter)
X11 error: BadDrawable (invalid Pixmap or Window parameter)
X11 error: BadWindow (invalid Window parameter)
A:   0.1 V:   0.1 A-V:  0.082 ct:  0.003   2/  2 ??% ??% ??,?% 0 0 

MPlayer interrupted by signal 8 in module: filter_video
ID_SIGNAL=8
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.

Original comment by army.of....@gmail.com on 21 Jan 2009 at 7:35

GoogleCodeExporter commented 8 years ago
ok, drop the '-wid 0x34000aa' option from the command. That just tells it where 
to draw.

Original comment by kdeko...@gmail.com on 21 Jan 2009 at 7:46

GoogleCodeExporter commented 8 years ago
Video plays nicely, with both mplayers. The output is the same as the above (i 
think).
 still need it again?

Original comment by army.of....@gmail.com on 21 Jan 2009 at 8:00

GoogleCodeExporter commented 8 years ago
Well I'm stuck, I have no idea why mplayer won't start under gnome-mplayer 
control.
Any errors in the logs? I run this app 10 to 100 times a day and have never 
seen this
issue other than in this bug report.

Original comment by kdeko...@gmail.com on 21 Jan 2009 at 8:24

GoogleCodeExporter commented 8 years ago
Hello,
imo the major problem is this:

root# gmake
gmake  all-recursive
gmake[1]: Entering directory `/root/gnome-mplayer'
Making all in src
gmake[2]: Entering directory `/root/gnome-mplayer/src'
gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\"
-DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -I../pixmaps
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
-I/usr/local/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/atk-1.0
-I/usr/local/include/cairo -I/usr/X11R6/include/pixman-1 -I/usr/local/include
-I/usr/local/include/libpng -I/usr/X11R6/include/freetype2 -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/gconf/2 -I/usr/local/include/orbit-2.0 -DORBIT2=1 -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include       -Wall -g
-DGTK2_12_ENABLED -DGLIB2_14_ENABLED -DGIO_ENABLED  -DHAVE_GCONF    -g -O2 -MT 
gui.o
-MD -MP -MF .deps/gui.Tpo -c -o gui.o gui.c
gui.c: In function `make_button':
gui.c:4720: error: syntax error before '&' token
gui.c:4721: error: syntax error before '&' token
gui.c:4760: error: invalid lvalue in unary `&'
gui.c:4760: error: invalid lvalue in unary `&'
gmake[2]: *** [gui.o] Error 1
gmake[2]: Leaving directory `/root/gnome-mplayer/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/gnome-mplayer'
gmake: *** [all] Error 2

So, the problematic code part is:

    GError *error;
    gchar *dirname = NULL;
    gchar *filename = NULL;
    gchar *basepath = NULL;
    gint exit_status;
    gchar *stdout = NULL;
    gchar *stderr = NULL;
    gchar *av[255];
    gint ac = 0;

This code is faulty since stdin/stdout/stderr on *BSD systems are macros and
therefore will mess up this declaration.

root# egrep 'stdout|stderr' /usr/include/stdio.h    
#define stdout  (&__sF[1])
#define stderr  (&__sF[2])
#define putchar(x)      putc(x, stdout)
#define putchar_unlocked(c)     putc_unlocked(c, stdout)

Because of this wrong behavior, gnome-mplayer is unable to catch mplayer output 
on
*BSD systems.

Best Regards,
David

Original comment by dco...@gmail.com on 27 Jan 2009 at 3:20

GoogleCodeExporter commented 8 years ago
So do you have a recommended patch? Should I #ifdef BSD those out or use 
different
variable names?

Original comment by kdeko...@gmail.com on 27 Jan 2009 at 3:36

GoogleCodeExporter commented 8 years ago
Ok, I replaced all the usage of stdout/stderr in the code with out/err in 
SVN... can
you please retest...

Original comment by kdeko...@gmail.com on 27 Jan 2009 at 3:44

GoogleCodeExporter commented 8 years ago
Hello,
things seem better now...
It compiles successfully.
gnome-mplayer window resizes to the size of the video but then fails with errors
related to g_io_channel:

GNOME MPlayer v0.9.4
vo = xv ao = sndio
Running with GIO support
Using volume of 100 from gnome-mplayer preference

(gnome-mplayer:4406): GLib-CRITICAL **: g_io_channel_write_chars: assertion 
`channel
!= NULL' failed

(gnome-mplayer:4406): GLib-CRITICAL **: g_io_channel_flush: assertion `channel 
!=
NULL' failed

(gnome-mplayer:4406): GLib-CRITICAL **: g_io_channel_write_chars: assertion 
`channel
!= NULL' failed

(gnome-mplayer:4406): GLib-CRITICAL **: g_io_channel_flush: assertion `channel 
!=
NULL' failed

(gnome-mplayer:4406): GLib-CRITICAL **: g_io_channel_write_chars: assertion 
`channel
!= NULL' failed

(gnome-mplayer:4406): GLib-CRITICAL **: g_io_channel_flush: assertion `channel 
!=
NULL' failed

(gnome-mplayer:4406): GLib-CRITICAL **: g_io_channel_write_chars: assertion 
`channel
!= NULL' failed

(gnome-mplayer:4406): GLib-CRITICAL **: g_io_channel_flush: assertion `channel 
!=
NULL' failed
opening /mnt/sdcard/YOUTUBE/5FGJ1QGdtKE.mp4
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0
opening playlist
playlist detection = 0
adding file:///mnt/sdcard/YOUTUBE/5FGJ1QGdtKE.mp4 to playlist
getting file metadata for /mnt/sdcard/YOUTUBE/5FGJ1QGdtKE.mp4
playing - file:///mnt/sdcard/YOUTUBE/5FGJ1QGdtKE.mp4
is playlist 0
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
mplayer -profile gnome-mplayer -quiet -slave -identify -framedrop 
-noconsolecontrols
-osdlevel 0 -nomouseinput -nocache -wid 0x1200086 -subfont-text-scale 5 -vf-add
screenshot /mnt/sdcard/YOUTUBE/5FGJ1QGdtKE.mp4 
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
Changing window size to 476 x 360 
Spawn succeeded for filename /mnt/sdcard/YOUTUBE/5FGJ1QGdtKE.mp4
Thread completing
shutting down threadquery for /mnt/sdcard/YOUTUBE/5FGJ1QGdtKE.mp4 since
threaddata->done is TRUE

I've done a ktrace log you can download from:
http://62.94.26.180/gnome-mplayer.ktrace.bz2

This is what I've installed on my system (OpenBSD 4.4-current):

glib2-2.18.4
gtk+2-2.14.7
gconf2-2.24.0
dbus-1.2.6p1
dbus-glib-0.78
mplayer-1.0rc2p17

Thank you for your support!

Regards
-david-

Original comment by dco...@gmail.com on 28 Jan 2009 at 9:55

GoogleCodeExporter commented 8 years ago
Those assertions are nothing to worry about, but I have fixed in in SVN. I 
don't get
them on Linux so that is weird. 

I also looked at the ktrace and it looks like mplayer is just exiting as it 
reaching
the end of the file.

I assume that this command works fine for you..

mplayer -profile gnome-mplayer -quiet -slave -identify -framedrop 
-noconsolecontrols
-osdlevel 0 -nomouseinput -nocache -subfont-text-scale 5 -vf-add
screenshot /mnt/sdcard/YOUTUBE/5FGJ1QGdtKE.mp4 

Original comment by kdeko...@gmail.com on 28 Jan 2009 at 1:40

GoogleCodeExporter commented 8 years ago
same here (window resizes, but no video), svn revision 1128
with both mplayer versions (1.0RC2/svn-snapshot)
###########################################################
> gnome-mplayer --reallyverbose video.wmv
GNOME MPlayer v0.9.4
vo = xv ao = oss
Running with GIO support
Using volume of 0 from gnome-mplayer preference
opening video.wmv
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0
video.wmv is not a device name
file:///usr/home/user/Desktop/video.wmv is not a device name
Streaming media 'file:///usr/home/user/Desktop/video.wmv' = 0
opening playlist
playlist detection = 0
adding file:///usr/home/user/Desktop/video.wmv to playlist
file:///usr/home/user/Desktop/video.wmv is not a device name
file:///usr/home/user/Desktop/video.wmv is not a device name
Streaming media 'file:///usr/home/user/Desktop/video.wmv' = 0
file:///usr/home/user/Desktop/video.wmv is not a device name
getting file metadata for /usr/home/user/Desktop/video.wmv
playing - file:///usr/home/user/Desktop/video.wmv
is playlist 0
file:///usr/home/user/Desktop/video.wmv is not a device name
file:///usr/home/user/Desktop/video.wmv is not a device name
Streaming media 'file:///usr/home/user/Desktop/video.wmv' = 0
/usr/home/user/Desktop/video.wmv is not a device name
/usr/home/user/Desktop/video.wmv is not a device name
Streaming media '/usr/home/user/Desktop/video.wmv' = 0
file:///usr/home/user/Desktop/video.wmv is not a device name
Streaming media 'file:///usr/home/user/Desktop/video.wmv' = 0
mplayer -profile gnome-mplayer -slave -identify -noconsolecontrols -osdlevel 0
-nomouseinput -nocache -wid 0x24000aa -subfont-text-scale 5 -subfont Sans 
-vf-add
screenshot /usr/home/user/Desktop/video.wmv 
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
Changing window size to 688 x 384 
Spawn succeeded for filename /usr/home/user/Desktop/video.wmv
About to lock second time, next message about thread running, should be 
unlocking
Thread completing
thread running, in second lock
send command = seek 0 0

thread running, before unlocking second time
thread running, unlocked second time
shutting down threadquery for /usr/home/user/Desktop/video.wmv since 
threaddata->done
is TRUE
send command = quit

send command = seek 0 2
pause

Original comment by army.of....@gmail.com on 28 Jan 2009 at 6:38

GoogleCodeExporter commented 8 years ago
so back to the original problem... mplayer never seems to start when playing the
video.. however we know it is being spawned correctly earlier since we know the
correct window size. Seems to have something to do with the 
g_spawn_async_with_pipes
call. For some reason the BSDs are not working. The lack of debug information is
frustrating since there should be way more information coming out. Are there any
system message or anything else?

Original comment by kdeko...@gmail.com on 28 Jan 2009 at 6:46

GoogleCodeExporter commented 8 years ago
I installed FreeBSD 7 on a VM on one of my machines and I am able to duplicate 
the
problem, however it appears that g_mutex_lock which maps to pthread_mutex_lock 
is
configured to not block on the secondary lock. So far I have not found a way to
change this behavior. I think the -D_REENTRANT flag in gthread-2.0.pc file 
might have
something to do with it, since this flag is not defined on linux, but just may 
be a
guess. I have removed that flag out of the .pc and found that it does change the
behavior but does not fix the root problem.

Original comment by kdeko...@gmail.com on 29 Jan 2009 at 1:41

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
See gnome bug: http://bugzilla.gnome.org/show_bug.cgi?id=569687

I was able to create a test case that duplicates the issue in GTK/Glib

Original comment by kdeko...@gmail.com on 29 Jan 2009 at 3:40

GoogleCodeExporter commented 8 years ago
Confirmed on openbsd too.

# ./threadtest                                                                  

launching thread
thread running
locking once
setting up lock release
about to lock second time, should hang for 5 seconds

--> DOESN'T SLEEP 5 SECS <--

back in start_thread

cya
-david-

Original comment by dco...@gmail.com on 29 Jan 2009 at 4:21

GoogleCodeExporter commented 8 years ago
Yeah, ok I found a solution for this. I coded it up in gnome-mplayer and tested 
on
FreeBSD 7 and committed it to SVN. It turns out that the BSDs use recursive 
locks so
that rather than blocking on the second lock it just increments a counter and 
moves
along. So I switch the code to emit a signal when mplayer is done and also to 
catch
this signal in the code and move along as needed.

So please test, but I believe this should work properly now.

Original comment by kdeko...@gmail.com on 29 Jan 2009 at 5:13

GoogleCodeExporter commented 8 years ago
Yes! Confirmed to work on openbsd too. Great!
Are you planning to make a new release? I'd like to have it in the official 
openbsd
ports tree.

cheers
david

Original comment by dco...@gmail.com on 29 Jan 2009 at 5:58

GoogleCodeExporter commented 8 years ago
Release is in the works... should be early next week.

Original comment by kdeko...@gmail.com on 29 Jan 2009 at 6:04

GoogleCodeExporter commented 8 years ago
Other two problems related to playlist. I don't know if it happens only on *bsd 
or on
linux too... 

Even if under Preferences I've set "Start with playlist visible", it starts 
without
playlist.

If I press "ctrl+l", sometimes the playlist shows up correctly, sometimes the 
window
changes size but the playlist doesn't appear.
An image is better than thousands words: 

http://62.94.26.180/2009-01-29-225537_1024x600_scrot.png

bye
-david-

Original comment by dco...@gmail.com on 29 Jan 2009 at 10:10

GoogleCodeExporter commented 8 years ago
I was gonna say so not hijack a bug report, but I see you opened Bug #135

Original comment by kdeko...@gmail.com on 29 Jan 2009 at 10:22

GoogleCodeExporter commented 8 years ago
YAH000T :D

it works now :)

Thank you soo much for looking into this, I really appreciate that.

Awesome Day for the *BSD folks :P

Original comment by army.of....@gmail.com on 29 Jan 2009 at 10:34