[MPlayer-dev-eng] [BUG] config/cmdline parser bug

Arpi arpi at thot.banki.hu
Sun Dec 1 15:42:50 CET 2002


Hi,

put this single line to your ~/.mplayer/config:

vfm=dmo,dshow,vfw,acm,

and run:  mplayer -anyoption anyfile (example: mplayer -nosound test.avi)

result:
MPlayer CVS-021201-00:55-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Intel Pentium 4 Xeon Foster (Family: 8, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading /root/.mplayer/codecs.conf: 47 audio & 123 video codecs

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 3866)]
0x8069cf8 in main (argc=3, argv=0xbffff954) at mplayer.c:712
712         if(video_fm_list && strcmp(video_fm_list[0],"help")==0){
(gdb) print video_fm_list
$1 = (char **) 0x833e8c8
(gdb) print *video_fm_list
$2 = 0x0
(gdb) q
The program is running.  Exit anyway? (y or n) y

the problem is that video_fm_list should point to a string list
"dmo","dshow","vfw","acm","" not to NULL!

i can workaround this with addinga  *video_fm_list!=NULL to that if(), but
it doesn't solve the bug, vfm will have no effect if you have any option
before teh filename.

Albeu, could you look at it?
it's happening since a few days, and afair you're the only who modified
(and who understand :)) these files

ps: it's with 'old' parser stuff, ie NO --enable-new-config


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list