pulsesink: also uncork during EOS waiting (and after EOS is rendered)
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 31 Mar 2011 11:25:00 +0000 (13:25 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 31 Mar 2011 11:25:19 +0000 (13:25 +0200)
commit176b8ffbfffb39d0d340e3e5f19f1081884523d7
treed4f48754809e9ce1cc7f4ccf95aab2b4faeb112a
parent9f256d81dbe4a055dc246354cfed7a79434fb7c5
pulsesink: also uncork during EOS waiting (and after EOS is rendered)

Pulsesink was recently changed to defer uncorking until there is data
to write. This condition will however never occur when EOS in being
rendered (since that marks the end of data). Changing to PAUSED state
while EOS is being waited on results in a hang: pausing corks the
stream, which will never be undone since there is no more data when
going back to PLAYING. If pulsesink is the clock provider, deadlock
ensues since time doesn't continue in corked state and the clock id
for EOS wait never fires.

Fixes #645961.
ext/pulse/pulsesink.c