Re: [spice-gtk PATCH v6 2/4] audio: spice-pulse implement async volume-info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, Apr 15, 2015 at 2:12 PM, Victor Toso <victortoso@xxxxxxxxxx> wrote:
> > +
> > +    if (info->channel_map.channels == 0) {
> > +        SPICE_DEBUG("%s - Number of channels stored is zero. Ignore.
> > (%s)", __func__, info->name);
> > +        return;
> > +
>
> What if there is already a playing stream, is this going to reset it to
> restore value?

Sorry, I think I did not understand.

This if () is only to avoid issues with restore-info. If the number of
channels stored in pulseaudio database is zero, probably we are not
interested in the volume-information.
 
I'm not sure when I hit this issue, probably when you have a new
database and we start the pulseaudio context but do not have any audio
stream. I believe it saved the application information in the database,
with default values but I'm not sure.

It's not about that if, it's actually about the function and the code after that change pstream->info. If there is already a info_cb that did update info, you'll reset it here.

--
Marc-André Lureau
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]