[vlc-devel] [PATCH] lib: Fire event when an audio output is created.

Mark Lee mark.lee at capricasoftware.co.uk
Thu Jan 9 22:30:46 CET 2014

On 9 January 2014 08:38, Rémi Denis-Courmont <remi at remlab.net> wrote:

> On Thu, 09 Jan 2014 09:37:46 +0100, Rémi Denis-Courmont <remi at remlab.net>
> wrote:
> > On Wed,  8 Jan 2014 21:29:46 +0000, Mark Lee
> > <mark.lee at capricasoftware.co.uk> wrote:
> >> After this event is received, a call to get/set the media player
> >> volume will succeed.
> >
> > Creating the audio output automatically would be simpler and more
> > backward-compatible.
> (And also more like how VLC and the playlist operate.)

I looked at the code in the playlist initialisation that creates the aout.

I then tried doing the same thing in the libvlc media player creation code
(right after the input resource is created, just like is done in the

The effect of this was that indeed an audio output is created and the calls
to get/set the volume no longer fail (i.e. they no longer return -1).


Setting the volume before playing media still appears to have no effect,
and getting the volume now returns zero rather than -1. Only after some
time has passed after the media has started playing does an actual correct
non-zero volume get returned.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140109/773f4ccd/attachment.html>

More information about the vlc-devel mailing list