Commit 13ca1066 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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

parent 82d4fa9f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment