From: Charlotte Pabst <cpabst@codeweavers.com> --- dlls/mfsrcsnk/tests/mfsrcsnk.c | 6 ------ dlls/winegstreamer/wg_parser.c | 5 +---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/dlls/mfsrcsnk/tests/mfsrcsnk.c b/dlls/mfsrcsnk/tests/mfsrcsnk.c index 97049bc3e3c..acd9c77b236 100644 --- a/dlls/mfsrcsnk/tests/mfsrcsnk.c +++ b/dlls/mfsrcsnk/tests/mfsrcsnk.c @@ -892,7 +892,6 @@ static HRESULT WINAPI teststream_GetCurrentPosition(IMFByteStream *iface, QWORD static HRESULT WINAPI teststream_SetCurrentPosition(IMFByteStream *iface, QWORD position) { - todo_wine_if(!(position % 0x40000 == 0)) ok(position % 0x40000 == 0, "IMFByteStream::SetCurrentPosition pos=%lld should be aligned on 0x40000 boundary.\n", position); return IMFByteStream_SetCurrentPosition(impl_from_IMFByteStream(iface)->inner, position); } @@ -907,9 +906,7 @@ static HRESULT WINAPI teststream_Read(IMFByteStream *iface, BYTE *buffer, ULONG QWORD pos = 0; HRESULT hr = IMFByteStream_GetCurrentPosition(impl_from_IMFByteStream(iface)->inner, &pos); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); - todo_wine_if(!(pos % 0x40000 == 0)) ok(pos % 0x40000 == 0, "IMFByteStream::Read pos=%lld should be aligned on 0x40000 boundary.\n", pos); - todo_wine_if(!(size <= 0x40000)) ok(size <= 0x40000, "IMFByteStream::BeginRead size=%lu should not be larger than 0x40000.\n", size); return IMFByteStream_Read(impl_from_IMFByteStream(iface)->inner, buffer, size, read_len); } @@ -920,9 +917,7 @@ static HRESULT WINAPI teststream_BeginRead(IMFByteStream *iface, BYTE *data, ULO QWORD pos = 0; HRESULT hr = IMFByteStream_GetCurrentPosition(impl_from_IMFByteStream(iface)->inner, &pos); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); - todo_wine_if(!(pos % 0x40000 == 0)) ok(pos % 0x40000 == 0, "IMFByteStream::BeginRead pos=%lld should be aligned on 0x40000 boundary.\n", pos); - todo_wine_if(!(size <= 0x40000)) ok(size <= 0x40000, "IMFByteStream::BeginRead size=%lu should not be larger than 0x40000.\n", size); return IMFByteStream_BeginRead(impl_from_IMFByteStream(iface)->inner, data, size, callback, state); } @@ -956,7 +951,6 @@ static HRESULT WINAPI teststream_Seek(IMFByteStream *iface, MFBYTESTREAM_SEEK_OR QWORD pos = 0; HRESULT hr = IMFByteStream_GetCurrentPosition(impl_from_IMFByteStream(iface)->inner, &pos); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); - todo_wine_if(!(pos % 0x40000 == 0)) ok(pos % 0x40000 == 0, "IMFByteStream::Seek pos=%lld should be aligned on 0x40000 boundary.\n", pos); return ret_hr; diff --git a/dlls/winegstreamer/wg_parser.c b/dlls/winegstreamer/wg_parser.c index 1a29015356e..6880cfd410e 100644 --- a/dlls/winegstreamer/wg_parser.c +++ b/dlls/winegstreamer/wg_parser.c @@ -97,7 +97,7 @@ struct wg_parser struct input_cache_chunk input_cache_chunks[4]; }; -static const unsigned int input_cache_chunk_size = 512 << 10; +static const unsigned int input_cache_chunk_size = 256 << 10; struct wg_parser_stream { @@ -1245,9 +1245,6 @@ static GstFlowReturn src_getrange_cb(GstPad *pad, GstObject *parent, return GST_FLOW_OK; } - if (size >= input_cache_chunk_size || sizeof(void*) == 4) - return issue_read_request(parser, offset, size, buffer); - if (offset >= parser->file_size) return GST_FLOW_EOS; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9710