-
- Downloads
audioutilsprivate: restore thread priority before ending
The priority of the thread that executes audioringbuffer_thread_func is incremented on Windows by the usage of the AvSetMmThreadCharacteristics API. This change has to be restored, as described on the documentation of the API (https://docs.microsoft.com/en-us/windows/win32/api/avrt/nf-avrt-avsetmmthreadcharacteristicsw#remarks), with a call to the AvRevertMmThreadCharacteristics. If this is not done, a handle will be leaked. Part-of: <!760>
Showing
- gst-libs/gst/audio/gstaudiosink.c 5 additions, 1 deletiongst-libs/gst/audio/gstaudiosink.c
- gst-libs/gst/audio/gstaudiosrc.c 5 additions, 1 deletiongst-libs/gst/audio/gstaudiosrc.c
- gst-libs/gst/audio/gstaudioutilsprivate.c 39 additions, 5 deletionsgst-libs/gst/audio/gstaudioutilsprivate.c
- gst-libs/gst/audio/gstaudioutilsprivate.h 4 additions, 1 deletiongst-libs/gst/audio/gstaudioutilsprivate.h
Loading
Please register or sign in to comment