From 5bf8c97a1c83ef83edc0e771a5ed4a7545ba722f Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sat, 19 Nov 2022 04:21:37 +0300 Subject: [PATCH] int once --- janus/src/logging.h | 2 +- janus/src/plugin.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/janus/src/logging.h b/janus/src/logging.h index bf9b0ad..8d4f67c 100644 --- a/janus/src/logging.h +++ b/janus/src/logging.h @@ -38,7 +38,7 @@ } #define US_ONCE(...) { \ - const unsigned m_reported = __LINE__; \ + const int m_reported = __LINE__; \ if (m_reported != once) { \ __VA_ARGS__; \ once = m_reported; \ diff --git a/janus/src/plugin.c b/janus/src/plugin.c index a3f4b15..6f6e389 100644 --- a/janus/src/plugin.c +++ b/janus/src/plugin.c @@ -118,7 +118,7 @@ static void *_video_sink_thread(UNUSED void *arg) { atomic_store(&_g_video_sink_tid_created, true); uint64_t frame_id = 0; - unsigned once = 0; + int once = 0; while (!_STOP) { if (!_HAS_WATCHERS) { @@ -181,7 +181,7 @@ static void *_audio_thread(UNUSED void *arg) { assert(_g_config->audio_dev_name != NULL); assert(_g_config->tc358743_dev_path != NULL); - unsigned once = 0; + int once = 0; while (!_STOP) { if (!_HAS_WATCHERS) {