Zebediah Figura : winegstreamer: Avoid accessing "parser->container" from gstdemux.c.

Alexandre Julliard julliard at winehq.org
Thu Feb 18 16:06:05 CST 2021


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed Feb 17 17:30:36 2021 -0600

winegstreamer: Avoid accessing "parser->container" from gstdemux.c.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winegstreamer/gstdemux.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 3bea994521b..d85bb02160e 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -864,12 +864,11 @@ static void parser_destroy(struct strmbase_filter *iface)
 static HRESULT parser_init_stream(struct strmbase_filter *iface)
 {
     struct parser *filter = impl_from_strmbase_filter(iface);
-    struct wg_parser *parser = filter->wg_parser;
     DWORD stop_flags = AM_SEEKING_NoPositioning;
     const SourceSeeking *seeking;
     unsigned int i;
 
-    if (!parser->container)
+    if (!filter->sink_connected)
         return S_OK;
 
     filter->streaming = true;
@@ -903,10 +902,9 @@ static HRESULT parser_init_stream(struct strmbase_filter *iface)
 static HRESULT parser_cleanup_stream(struct strmbase_filter *iface)
 {
     struct parser *filter = impl_from_strmbase_filter(iface);
-    struct wg_parser *parser = filter->wg_parser;
     unsigned int i;
 
-    if (!parser->container)
+    if (!filter->sink_connected)
         return S_OK;
 
     filter->streaming = false;




More information about the wine-cvs mailing list