pulse: Fix the reading of stream information on startup.
authorColin Guthrie <cguthrie@mandriva.org>
Sat, 24 Apr 2010 13:54:36 +0000 (14:54 +0100)
committerColin Guthrie <cguthrie@mandriva.org>
Sat, 24 Apr 2010 13:54:36 +0000 (14:54 +0100)
commit1eb324f60f8df6bc7a866679919d79f1a2a3ff81
tree149c0ec021c5c7eb8b39dbd64587717671789c11
parentb44f19d7038f7e6182db4d29aee39dab569193fd
pulse: Fix the reading of stream information on startup.

Due to the new probe+reconnect logic, it is possible to initialise
a 'PulseStream' object and start the backend outputting it
prior to our control connection being established. This means that
we miss the subscription event and never actually associate the
PA stream index with our stream object. Whenever something changes
on the stream at the PA end things would kick in and would work fine,
so this was sometimes hard to see and identify.

This change simply invalidates all streams when we're finished connecting
to PA and then loads up all info from PA to set the indexes correctly.

CCBUG: 235193
phonon/pulsesupport.cpp