nicesink: unblock pending write on component change
authorJakub Adam <jakub.adam@ktknet.cz>
Thu, 25 Sep 2014 13:50:30 +0000 (15:50 +0200)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Thu, 29 Jan 2015 03:32:31 +0000 (22:32 -0500)
commit21dd3d1566d9b5e5d31a944b5f15f56fe6e4e596
tree70c35dd9e024d98ede303fcecf25f628ffa55ca2
parent7e571b22d5e236d17e3575a8723b5c07f7fa30e4
nicesink: unblock pending write on component change

When a nicesink switches to a different component, we should unblock any
pending write waiting in gst_nice_sink_render() for writable_cond being
signalled because if the new transport already is writable, we'll never
get notified about the condition and thus nicesink will wait forever.

That way, either the pending data are immediately sent or the nicesink
blocks again until the transport becomes writable.
gst/gstnicesink.c