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

qedit/samplegrabber: Don't overwrite the filter media type in sample_grabber_sink_connect().

parent 5608682d
......@@ -254,7 +254,7 @@ SampleGrabber_ISampleGrabber_GetConnectedMediaType(ISampleGrabber *iface, AM_MED
if (!filter->sink.pin.peer)
return VFW_E_NOT_CONNECTED;
CopyMediaType(mt, &filter->filter_mt);
CopyMediaType(mt, &filter->sink.pin.mt);
return S_OK;
}
......@@ -519,9 +519,6 @@ static HRESULT sample_grabber_sink_connect(struct strmbase_sink *iface,
&& !IsEqualGUID(&filter->filter_mt.formattype, &mt->formattype))
return VFW_E_TYPE_NOT_ACCEPTED;
FreeMediaType(&filter->filter_mt);
CopyMediaType(&filter->filter_mt, mt);
return S_OK;
}
......
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