[MPlayer-dev-eng] about libvo... IMPORTANT

Fredrik Kuivinen freku045 at student.liu.se
Tue Mar 19 19:16:44 CET 2002


On Tue, Mar 19, 2002 at 06:32:11PM +0100, Arpi wrote:
> > initialization fails because mplayer tries to use it even though it isn't
> > initialized correctly. (at least with xv and sdl)
> 
> rtfm bugreports.html
> i fixed it 2 days ago, if you still have it, tell me how
>

Sorry my fault. But -vo xv has an other bug. See attachment.

/ Fredrik Kuivinen

-------------- next part --------------
Index: vo_xv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xv.c,v
retrieving revision 1.63
diff -u -3 -p -r1.63 vo_xv.c
--- vo_xv.c	9 Mar 2002 21:50:03 -0000	1.63
+++ vo_xv.c	19 Mar 2002 18:34:07 -0000
@@ -756,6 +756,9 @@ return 0;
 static void uninit(void) 
 {
  int i;
+ if(!mDisplay)
+	 return;
+ 
  saver_on(mDisplay); // screen saver back on
  for( i=0;i<num_buffers;i++ ) deallocate_xvimage( i );
 #ifdef HAVE_XF86VM
-------------- next part --------------
export DISPLAY="" # Make sure xv initialization fails.

GNU gdb 5.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) r -v -vo xv ~/film/Memento.DVDrip.DivX.avi 
Starting program: /usr/home/ksorim/mplayer/player/main/mplayer -v -vo xv ~/film/Memento.DVDrip.DivX.avi
CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Type: 6, Stepping: 3)
Testing OS support for SSE... yes.
Testing OS support for SSE unmasked exceptions... yes.
Tests of OS support for SSE passed.
Reading /home/ksorim/.mplayer/codecs.conf: 30 audio & 80 video codecs
 '-v' '-vo' 'xv' '/home/ksorim/film/Memento.DVDrip.DivX.avi'
Font /home/ksorim/.mplayer/font/font.desc loaded successfully! (206 chars)
Not an URL!
list_end=0x2292
======= AVI Header =======
us/frame: 40000  (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 163211   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 272
list_end=0x10F4
======= STREAM Header =======
Type: vids   FCC: div3 (33766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 25000/1000 = 25.000
Start: 0   Len: 163211
Suggested BufferSize: 45988
Quality 10000
Sample size: 0
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 272
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 522240
===========================
list_end=0x2186
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 48000/1152 = 41.667
Start: 0   Len: 272018
Suggested BufferSize: 11520
Quality -1
Sample size: 0
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16512
Block align: 1152
bits/sample: 0
cbSize: 12
list_end=0x2292
list_end=0x2ACFABDA
CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Type: 6, Stepping: 3)
Testing OS support for SSE... yes.
Testing OS support for SSE unmasked exceptions... yes.
Tests of OS support for SSE passed.
mp3lib: made decode tables with MMX optimization
init layer2&3 finished, tables done
mp3lib: using generic decore!
mp3lib init done.

MPEG 1.0, Layer III, 48000 Hz 128 kbit Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: Yes, emphasis: 0
Opening Video Decoder: [dshow] DirectShow video codecs
fs seg 0x40017000
Loading DLL: 'divx_c32.ax'
Using DirectShow codec: divx_c32.ax
Decoder is capable of YUV output ( flags 0x9)
X11 opening display: 
vo: couldn't open the X11 display ()!
VDecoder init failed :(
Opening Video Decoder: [vfw] Win32/VfW video codecs
X11 opening display: 
vo: couldn't open the X11 display ()!
VDecoder init failed :(
Opening Video Decoder: [odivx] Opendivx 0.48 codec
VDecoder init failed :(
Opening Video Decoder: [vfw] Win32/VfW video codecs
X11 opening display: 
vo: couldn't open the X11 display ()!
VDecoder init failed :(
Opening Video Decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec: CPU flags: mmx mmxext sse
X11 opening display: 
vo: couldn't open the X11 display ()!
VDecoder init failed :(
Opening Video Decoder: [dshow] DirectShow video codecs
Loading DLL: 'divx_c32.ax'
Using DirectShow codec: divx_c32.ax
Decoder is capable of YUV output ( flags 0x9)
X11 opening display: 
vo: couldn't open the X11 display ()!
VDecoder init failed :(
Opening Video Decoder: [vfw] Win32/VfW video codecs
X11 opening display: 
vo: couldn't open the X11 display ()!
VDecoder init failed :(
Opening Video Decoder: [odivx] Opendivx 0.48 codec
VDecoder init failed :(
Opening Video Decoder: [vfw] Win32/VfW video codecs
X11 opening display: 
vo: couldn't open the X11 display ()!
VDecoder init failed :(
Opening Video Decoder: [ffmpeg] FFmpeg's libavcodec codec family
X11 opening display: 
vo: couldn't open the X11 display ()!
VDecoder init failed :(
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags: 128/128  (1024 bytes/frag)  free: 131072
[New Thread 1024 (LWP 14447)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 14447)]
0x4011cc28 in XQueryExtension () from /usr/X11R6/lib/libX11.so.6
(gdb) bt
#0  0x4011cc28 in XQueryExtension () from /usr/X11R6/lib/libX11.so.6
#1  0x401142d1 in XInitExtension () from /usr/X11R6/lib/libX11.so.6
#2  0x401cfb15 in XextAddDisplay () from /usr/X11R6/lib/libXext.so.6
#3  0x401d2159 in XShapeGetRectangles () from /usr/X11R6/lib/libXext.so.6
#4  0x401d271d in XShmDetach () from /usr/X11R6/lib/libXext.so.6
#5  0x08087d2a in deallocate_xvimage (foo=0) at vo_xv.c:548
#6  0x08088639 in uninit () at vo_xv.c:760
#7  0x0805fb8f in uninit_player (mask=1) at mplayer.c:309
#8  0x08061db3 in main (argc=5, argv=0xbffff9e4, envp=0xbffff9fc) at mplayer.c:1350
#9  0x402896cf in __libc_start_main () from /lib/libc.so.6
(gdb) up
#1  0x401142d1 in XInitExtension () from /usr/X11R6/lib/libX11.so.6
(gdb) 
#2  0x401cfb15 in XextAddDisplay () from /usr/X11R6/lib/libXext.so.6
(gdb) 
#3  0x401d2159 in XShapeGetRectangles () from /usr/X11R6/lib/libXext.so.6
(gdb) 
#4  0x401d271d in XShmDetach () from /usr/X11R6/lib/libXext.so.6
(gdb) 
#5  0x08087d2a in deallocate_xvimage (foo=0) at vo_xv.c:548
548	 XShmDetach( mDisplay,&Shminfo[foo] );
(gdb) p mDisplay
$1 = (Display *) 0x0
(gdb) q
The program is running.  Exit anyway? (y or n) 


More information about the MPlayer-dev-eng mailing list