chopmydata: don't mess with adapter from non-streaming thread on FLUSH_START
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 30 Apr 2011 18:08:25 +0000 (19:08 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 30 Apr 2011 18:08:25 +0000 (19:08 +0100)
commit65f481ca631997d9840278ff68d32bb1c6c92c6d
treed30a725ec978b32c1b8fba914c06be035e8ce3f7
parent2084044112bddc80019a288540f309e010cc604d
chopmydata: don't mess with adapter from non-streaming thread on FLUSH_START

Don't try to push remaining data in the adapter on receiving a FLUSH event,
just flush the adapter. Do this on FLUSH_STOP, however, which is serialized,
unlike FLUSH_START, so we don't mess with the adapter at the same time as
the streaming thread.
gst/debugutils/gstchopmydata.c