]> code.delx.au - pulseaudio/blobdiff - src/modules/bluetooth/module-bluetooth-device.c
modules: Micro-optimisation for rewind_requested paths
[pulseaudio] / src / modules / bluetooth / module-bluetooth-device.c
index 8c2efa4924d895ae8a6630fba28716d8bae50209..8a9d39f784ab21e3ee5645306e59b89311efbc03 100644 (file)
@@ -1081,7 +1081,7 @@ static void thread_func(void *userdata) {
 
         if (u->sink && PA_SINK_IS_LINKED(u->sink->thread_info.state)) {
 
-            if (u->sink->thread_info.rewind_requested)
+            if (PA_UNLIKELY(u->sink->thread_info.rewind_requested))
                 pa_sink_process_rewind(u->sink, 0);
 
             if (pollfd) {