mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-17 21:13:42 +00:00
int once
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define US_ONCE(...) { \
|
#define US_ONCE(...) { \
|
||||||
const unsigned m_reported = __LINE__; \
|
const int m_reported = __LINE__; \
|
||||||
if (m_reported != once) { \
|
if (m_reported != once) { \
|
||||||
__VA_ARGS__; \
|
__VA_ARGS__; \
|
||||||
once = m_reported; \
|
once = m_reported; \
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ static void *_video_sink_thread(UNUSED void *arg) {
|
|||||||
atomic_store(&_g_video_sink_tid_created, true);
|
atomic_store(&_g_video_sink_tid_created, true);
|
||||||
|
|
||||||
uint64_t frame_id = 0;
|
uint64_t frame_id = 0;
|
||||||
unsigned once = 0;
|
int once = 0;
|
||||||
|
|
||||||
while (!_STOP) {
|
while (!_STOP) {
|
||||||
if (!_HAS_WATCHERS) {
|
if (!_HAS_WATCHERS) {
|
||||||
@@ -181,7 +181,7 @@ static void *_audio_thread(UNUSED void *arg) {
|
|||||||
assert(_g_config->audio_dev_name != NULL);
|
assert(_g_config->audio_dev_name != NULL);
|
||||||
assert(_g_config->tc358743_dev_path != NULL);
|
assert(_g_config->tc358743_dev_path != NULL);
|
||||||
|
|
||||||
unsigned once = 0;
|
int once = 0;
|
||||||
|
|
||||||
while (!_STOP) {
|
while (!_STOP) {
|
||||||
if (!_HAS_WATCHERS) {
|
if (!_HAS_WATCHERS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user