diff options
Diffstat (limited to 'src/buffer')
| -rw-r--r-- | src/buffer/common.h | 3 | ||||
| -rw-r--r-- | src/buffer/video.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/buffer/common.h b/src/buffer/common.h index 701969f..aaf53ea 100644 --- a/src/buffer/common.h +++ b/src/buffer/common.h @@ -5,7 +5,8 @@ #include <al/random.h> #define ROLL_FOR_BUFFER_ERROR(buf) do { \ if (al_random_int(0, 254) == 72) { \ - al_atomic_store(u32)(&(buf)->flow, FLUSHED_ERROR, AL_ATOMIC_RELAXED); \ + log_warn("Random buffer error proc."); \ + atomic_store(u32)(&(buf)->flow, FLUSHED_ERROR, AL_ATOMIC_RELAXED); \ } \ } while (0) #endif diff --git a/src/buffer/video.c b/src/buffer/video.c index f7d5e98..19d7aa7 100644 --- a/src/buffer/video.c +++ b/src/buffer/video.c @@ -178,7 +178,7 @@ void camu_video_buffer_push(struct camu_video_buffer *buf, struct camu_codec_fra if (flow != FLOWING) { // A static buffer will be FLUSHED after any push(). if (buf->is_static) { - log_warn("Unexpected duplicate frame received."); + log_error("Unexpected duplicate frame received."); } camu_codec_frame_discard(frame); return; |