Commits on Source (7)
-
It was removed in fdbbae70
f696c2fd -
QueryUnbiasedInterruptTime() provides ticks in 100 ns resolution, so we can use VLC_TICK_FROM_MSFTIME().
5d026038 -
9d215434
-
It relies on clk.perf.freq.QuadPart which is uninitialized and unknown until SelectClockSource() is called. So it calls vlc_threads_setup() each time until vlc_threads_setup() is called with the libvlc instance. Except vlc_threads_setup(NULL) will crash on the var_InheritBool(vlc, "high-priority") call. It's broken since d0c4c5a9 Usable candidates at startup are: * mdate_interrupt which is a counter in 100 ns, not a wall clock * mdate_tick which is a counter in 1 ms, not a wall clock * mdate_perf_100ns which is a clock in 100 ns but we don't know if the system uses that resolution * mdate_wall which is a clock in 100 ns resolution (slowest) mdate_wall gives the better results and should provide a safe transition with mdate_perf/mdate_perf_100ns values.
6d233f3f -
Now that we always call it with a proper libvlc_int_t.
337fd69b -
Since vlc_threads_setup is only called once with the proper libvlc_int_t, we don't need a mechanism to check the first call, nor a special value to check if it's the first call or not.
5fccc834 -
It might provide better documentation to the user. And we don't need to reinvent the wheel to handle a default value in SelectClockSource().
008e8cef