Commit 7fef7470 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winegstreamer: Request the wm_reader stream only when necessary.

parent 68cc41ba
......@@ -125,7 +125,6 @@ static void callback_thread_run(struct async_reader *reader)
{
IWMReaderCallbackAdvanced *callback_advanced = reader->callback_advanced;
IWMReaderCallback *callback = reader->callback;
struct wm_stream *stream;
static const DWORD zero;
QWORD pts, duration;
WORD stream_number;
......@@ -141,10 +140,10 @@ static void callback_thread_run(struct async_reader *reader)
if (hr != S_OK)
break;
stream = wm_reader_get_stream_by_stream_number(&reader->reader, stream_number);
if (async_reader_wait_pts(reader, pts))
{
struct wm_stream *stream = wm_reader_get_stream_by_stream_number(&reader->reader, stream_number);
LeaveCriticalSection(&reader->callback_cs);
if (stream->read_compressed)
hr = IWMReaderCallbackAdvanced_OnStreamSample(callback_advanced,
......
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