With the current ebuilds no matter what you set for use variables ffmpeg or
gstreamer. Gnash will be compiled with ffmpeg for the media handler and sdl for
sound.
The ebuild is trying to set --enable-sound=gst when using the gstreamer use
setting.
#--enable-sound=gst,sdl
if use gstreamer; then
myconf="${myconf} --enable-sound=gst"
else
myconf="${myconf} --enable-sound=sdl"
fi
This is useless as when gnash checks that the media handler is still set to
ffmpeg (the default) it ignore's this setting and use's sdl instead.
The only possible options are:
ffmpeg as media handler and sdl for sound.
mad as media handler and sdl for sound.
gst as media handler and gst for sound.
Everything else is invalid.
I suggest your replace the following code:
#--enable-sound=gst,sdl
if use gstreamer; then
myconf="${myconf} --enable-sound=gst"
else
myconf="${myconf} --enable-sound=sdl"
fi
if use ffmpeg; then
myconf="${myconf} --with-mp3-decoder=ffmpeg"
fi
With something similar to:
#--enable-media=gst||ffmpeg||mad
if use gstreamer; then
myconf="${myconf} --enable-media=gst"
fi
if use ffmpeg; then
myconf="${myconf} --enable-media=ffmpeg"
fi
if use !gstreamer && use !ffmpeg; then
myconf="${myconf} --enable-media=mad"
fi
This will set the media handler using the use words ffmpeg and gstreamer (will
default to mad) which in turn will automatically set the correct sound option
(gst,sdl).
You should also add the option --disable-debugger to the ebuild. It improves
performance a little.