Bug 209521 - media-video/smplayer crashes mplayer when mplayer has USE="-png"
Bug#: 209521 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: media-video@gentoo.org Reported By: gentoo@bernd-steinhauser.de
Component: Ebuilds
URL: 
Summary: media-video/smplayer crashes mplayer when mplayer has USE="-png"
Keywords:  
Status Whiteboard: 
Opened: 2008-02-10 13:35 0000
Description:   Opened: 2008-02-10 13:35 0000
If one compiles mplayer with USE="-png" and runs it via
"mplayer -vf-add screenshot"
as smplayer does in _default_ configuration, then mplayer will crash.
There should be either a built check

if ! built_with_use media-video/mplayer png; then
 die "Smplayer needs mplayer to be built with png support, to prevent crashes."
fi

Maybe ewarn instead of die is sufficient. If ewarn is used, there should be a
comment, that one can clear the "Folder for storing screenshots" field to
prevent smplayer from adding -vf-add screenshot to the command line it passes
to mplayer.

See also:
http://smplayer.sourceforge.net/forums/viewtopic.php?id=234

Reproducible: Always

Steps to Reproduce:
1. USE="-png" emerge -v1 mplayer smplayer
2. mv ~/.smplayer ~/.smplayer.old
3. smplayer some_video_file

Actual Results:  
Debug: MplayerProcess::parseLine: 'Opening video filter: [screenshot]'
Debug: MplayerProcess::parseLine: ''
Debug: MplayerProcess::parseLine: ''
Debug: MplayerProcess::parseLine: 'MPlayer interrupted by signal 11 in module:
init_video_filters'
Debug: MplayerProcess::parseLine: 'ID_SIGNAL=11'
Debug: MplayerProcess::parseLine: '- MPlayer crashed by bad usage of
CPU/FPU/RAM.'

------- Comment #1 From Bernd Steinhauser 2008-02-10 14:17:40 0000 -------
Forgot to add, this is of course the case for both versions in portage.

------- Comment #2 From Ben de Groot 2008-02-19 00:25:49 0000 -------
Applied in cvs.