[PATCH 1/4] winegstreamer: Do not flush the upstream source pin in activate_push().

Zebediah Figura z.figura12 at gmail.com
Thu Jan 28 18:40:13 CST 2021


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 at gmail.com>
---
 dlls/winegstreamer/gstdemux.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index a4d49c75a1b..b2a20934837 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -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) {
-- 
2.30.0




More information about the wine-devel mailing list