Commit 6f1b3cf9 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Explicitly disable streams in start_pipeline().

Allow the initial state of a stream to be enabled. Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 90dc7f5b
......@@ -363,6 +363,10 @@ static void start_pipeline(struct media_source *source, struct source_async_comm
IMFMediaType_Release(current_mt);
IMFMediaTypeHandler_Release(mth);
}
else
{
wg_parser_stream_disable(stream->wg_stream);
}
if (position->vt != VT_EMPTY)
stream->eos = FALSE;
......@@ -419,10 +423,7 @@ static void stop_pipeline(struct media_source *source)
{
struct media_stream *stream = source->streams[i];
if (stream->state != STREAM_INACTIVE)
{
IMFMediaEventQueue_QueueEventParamVar(stream->event_queue, MEStreamStopped, &GUID_NULL, S_OK, NULL);
wg_parser_stream_disable(stream->wg_stream);
}
}
IMFMediaEventQueue_QueueEventParamVar(source->event_queue, MESourceStopped, &GUID_NULL, S_OK, NULL);
......
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