Commit a67ad095 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz/filesource: Correctly initialize the default media type.

parent 397c15ab
......@@ -623,8 +623,8 @@ static HRESULT WINAPI FileSource_Load(IFileSourceFilter * iface, LPCOLESTR pszFi
This->pmt->cbFormat = 0;
This->pmt->pbFormat = NULL;
This->pmt->pUnk = NULL;
This->pmt->lSampleSize = 0;
This->pmt->formattype = FORMAT_None;
This->pmt->lSampleSize = 1;
This->pmt->formattype = GUID_NULL;
hr = GetClassMediaFile(pReader, pszFileName, &This->pmt->majortype, &This->pmt->subtype, NULL);
if (FAILED(hr))
{
......
......@@ -237,11 +237,9 @@ static void test_file_source_filter(void)
ok(file_mt.bFixedSizeSamples == TRUE, "Got fixed size %d.\n", file_mt.bFixedSizeSamples);
ok(file_mt.bTemporalCompression == FALSE, "Got temporal compression %d.\n",
file_mt.bTemporalCompression);
todo_wine {
ok(file_mt.lSampleSize == 1, "Got sample size %u.\n", file_mt.lSampleSize);
ok(IsEqualGUID(&file_mt.formattype, &GUID_NULL), "Got format type %s.\n",
wine_dbgstr_guid(&file_mt.formattype));
}
ok(!file_mt.pUnk, "Got pUnk %p.\n", file_mt.pUnk);
ok(!file_mt.cbFormat, "Got format size %#x.\n", file_mt.cbFormat);
ok(!file_mt.pbFormat, "Got format %p.\n", file_mt.pbFormat);
......
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