summaryrefslogtreecommitdiff
path: root/src/libsink
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsink')
-rw-r--r--src/libsink/sink.c6
1 files changed, 3 insertions, 3 deletions
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) {