Bug#699695: gnome-mplayer: should read and use any mplayer configuration file

Francesco Poli invernomuto at paranoici.org
Thu Feb 21 23:50:46 UTC 2013


On Thu, 21 Feb 2013 17:28:06 +0100 Sebastian Ramacher wrote:

[...]
> On 2013-02-20 23:04:06, Francesco Poli wrote:
> > Hello again,
> > since I am not satisfied with the "workaround" suggested by upstream
> > and mentioned in <http://bugs.debian.org/700189#64>, I am trying to see
> > whether I can come up with a patch that makes gnome-mplayer avoid
> > passing the "-volume" option to mplayer in certain situations.
> > 
> > When I saw the "use_volume_option" variable in src/main.c:1309,
> > I thought I found the way to do it: it seemed that setting that
> > variable to FALSE could disable the use of the "-volume" option in the
> > mplayer command line.
> > 
> > I tried to modify the src/main.c accordingly, but it seems to me that
> > the "use_volume_option" variable has no effect at all.
> > It is indeed 0 (checked with gdb), but the mplayer command line still
> > includes the "-volume" option...
> > Before this issue drives me completely crazy, could you please clarify
> > what's wrong in my reasoning?
> > Is the "use_volume_option" variable actually used for anything?
> > Is there an easy way to disable the passing of the "-volume" option to
> > mplayer (without a major code overhaul)?
> 
> The options passed to mplayer are assembled in gmtk.

Yes, I found that out.
Thanks anyway for kindly explaining this to me.

> The function you're
> looking for is launch_mplayer in src/gmtk_media_player.c. Just grep for
> "-volume" in that file.

Sure, but I would like to decide *inside gnome-mplayer* whether gmtk
should or should not pass the "-volume" option to mplayer.

The "use_volume_option" identifier seemed to suggest that this variable
was used exactly for that purpose.
Otherwise, why assigning to it a boolean value returned by the
detect_volume_option() function?!?
What is the actual purpose of the "use_volume_option" variable?
I cannot find it referenced anywhere else than in
gnome-mplayer/src/main.c ...
It does not seem to be in any way accessible from gmtk ...

> 
> (I'm not sure if it's enough to just patch out "-volume". There is some
> interaction between the volume control widget and mplayer too.)

That's a reasonable concern. I have the same concern myself.
I was trying to test what would happen, but, as I said, it seems that
the "use_volume_option" variable has no effect at all.

> 
> Hope that helps

A little, thanks a lot for your fast reply.

-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20130222/a3cfae07/attachment.pgp>


More information about the pkg-multimedia-maintainers mailing list