From c6a78e2502fd3f7deabecbf48970f346424106f6 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sun, 30 Nov 2025 18:26:31 -0500 Subject: Pass on atomic usage Signed-off-by: Andrew Opalach --- src/libsink/sink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libsink') diff --git a/src/libsink/sink.c b/src/libsink/sink.c index fccbc3e..0db5da2 100644 --- a/src/libsink/sink.c +++ b/src/libsink/sink.c @@ -133,7 +133,7 @@ AL_STATIC_ASSERT(max_age_lt_lru, ENTRY_MAX_AGE, <, SINK_LRU_MAX); static inline bool entry_audio_buffer_held(struct camu_sink_entry *entry) { #ifdef CAMU_MIXER_THREADED - return atomic_load(u8)(&entry->audio.buf.ref, AL_ATOMIC_RELAXED) == 1; + return atomic_load(bool)(&entry->audio.buf.ref, AL_ATOMIC_RELAXED); #else (void)entry; return false; @@ -143,7 +143,7 @@ static inline bool entry_audio_buffer_held(struct camu_sink_entry *entry) static inline bool entry_video_buffer_held(struct camu_sink_entry *entry) { #ifdef CAMU_SCREEN_THREADED - return atomic_load(u8)(&entry->video.buf.ref, AL_ATOMIC_RELAXED) == 1; + return atomic_load(bool)(&entry->video.buf.ref, AL_ATOMIC_RELAXED); #else (void)entry; return false; @@ -1193,7 +1193,7 @@ static void client_callback(void *userdata, u8 op, struct camu_codec_stream *str camu_audio_buffer_set_no_video(&entry->audio.buf, ignore_video); } if (!ignore_video) { - camu_video_buffer_reset(&entry->video.buf, time->pos); + camu_video_buffer_reset(&entry->video.buf, time->pos / 1000000.0); } #ifdef LIANA_LIST_SCUFFED_LOOP if (time->pos == 0) { -- cgit v1.2.3-101-g0448