[PATCH 2/4] winegstreamer: Explicitly disable streams in start_pipeline().
Zebediah Figura
zfigura at codeweavers.com
Fri Apr 8 12:11:07 CDT 2022
Allow the initial state of a stream to be enabled.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/winegstreamer/media_source.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/winegstreamer/media_source.c b/dlls/winegstreamer/media_source.c
index c9f95a8a451..f07b83f413e 100644
--- a/dlls/winegstreamer/media_source.c
+++ b/dlls/winegstreamer/media_source.c
@@ -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);
--
2.35.1
More information about the wine-devel
mailing list