Skip to content

Commit

Permalink
修改 ffrdpc.c 增加定时执行 ffrdp_dump 的功能
Browse files Browse the repository at this point in the history
  • Loading branch information
rockcarry committed Nov 27, 2020
1 parent e37c98a commit 9d31452
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ffrdpdemuxer/ffrdpc.c
Expand Up @@ -46,7 +46,7 @@ typedef struct {
static void* ffrdpc_thread_proc(void *argv)
{
FFRDPC *ffrdpc = (FFRDPC*)argv;
uint32_t tickgetframe = 0, ticktryconnect = 0;
uint32_t tickgetframe = 0, ticktryconnect = 0, tickdump = 0;
uint8_t buffer[1500];
int ret;

Expand All @@ -67,6 +67,11 @@ static void* ffrdpc_thread_proc(void *argv)
ffrdp_send(ffrdpc->ffrdp, "1", 1);
ticktryconnect = get_tick_count();
}
} else {
if ((int32_t)get_tick_count() - (int32_t)tickdump > 1000) {
// ffrdp_dump(ffrdpc->ffrdp, 0);
tickdump = get_tick_count();
}
}

while (1) {
Expand Down

0 comments on commit 9d31452

Please sign in to comment.