Zebediah Figura (@zfigura) commented about dlls/wmvcore/async_reader.c:
+static HRESULT async_reader_get_next_sample(struct async_reader *reader,
struct stream **out_stream, struct sample **out_sample)
{
- struct sample *sample, *first_sample = NULL;
- struct stream *stream, *first_stream = NULL;
- WMT_STREAM_SELECTION selection;
- struct list *entry;
- DWORD i;
- for (i = 0; i < reader->stream_count; ++i)
- {
stream = reader->streams + i;
if (FAILED(IWMSyncReader2_GetStreamSelected(reader->reader, i + 1, &selection))
|| selection == WMT_OFF)
continue;
I notice we're still creating threads for unselected streams, which doesn't seem desirable.