Zebediah Figura : winegstreamer: Do not flush the upstream source pin in activate_push().

Alexandre Julliard julliard at winehq.org
Fri Jan 29 15:10:21 CST 2021


Module: wine
Branch: master
Commit: 5482400a4edb57985be313a68ea9b6406f26ae4f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5482400a4edb57985be313a68ea9b6406f26ae4f

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Jan 28 18:40:13 2021 -0600

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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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) {




More information about the wine-cvs mailing list