winegstreamer: Do not flush the upstream source pin in activate_push().
We don't do this in pull mode (and in general never have; avidemux and wavparse are two examples of GStreamer elements that don't flush the upstream pad when deactivating). Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
307f5d00f1
commit
5482400a4e
|
@ -1424,12 +1424,10 @@ static gboolean activate_push(GstPad *pad, gboolean activate)
|
|||
EnterCriticalSection(&This->filter.filter_cs);
|
||||
if (!activate) {
|
||||
TRACE("Deactivating\n");
|
||||
IAsyncReader_BeginFlush(This->reader);
|
||||
if (This->push_thread) {
|
||||
pthread_join(This->push_thread, NULL);
|
||||
This->push_thread = 0;
|
||||
}
|
||||
IAsyncReader_EndFlush(This->reader);
|
||||
if (This->filter.state == State_Stopped)
|
||||
This->nextofs = This->start;
|
||||
} else if (!This->push_thread) {
|
||||
|
|
Loading…
Reference in New Issue