31 Jan
2024
31 Jan
'24
2:23 a.m.
On Tue Jan 30 08:50:22 2024 +0000, Nikolay Sivov wrote:
You can also use MFCreateSinkWriterFromMediaSink() with a custom sink stub and see what happens. It's a legitimate use case, because sinks are supposed to be external plugin-like objects. I created a writer from mp4 media sink. Before calling BeginWriting() on writer, GetPresentationClock() on that sink returned MF_E_NO_CLOCK. After BeginWriting(), it returns a valid clock.
The test code is attacted: [clock_test.c](/uploads/27be06ce75c1c05e51fe04a6bde08b13/clock_test.c). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4943#note_59568