aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.c b/main.c
index 44a0f9b..1261715 100644
--- a/main.c
+++ b/main.c
@@ -141,7 +141,7 @@ int save_encoded(struct instance *i, const void *buf, unsigned int size)
return -1;
}
- info("created file %s", filename);
+ dbg("created file %s", filename);
write:
written = pwrite(out->fd, buf, size, out->offs);
@@ -233,6 +233,8 @@ void *main_thread_func(void *args)
pfd.events = POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM |
POLLRDBAND | POLLPRI;
+ fprintf(stdout, "encoded frame ");
+
while (1) {
ret = poll(&pfd, 1, 10000);
if (!ret) {
@@ -268,8 +270,8 @@ void *main_thread_func(void *args)
vid->cap_buf_flag[n] = 0;
pthread_mutex_unlock(&i->lock);
- if (i->verbose)
- info("encoded frame %ld", vid->total_encoded);
+ fprintf(stdout, "%03ld\b\b\b", vid->total_encoded);
+ fflush(stdout);
if (finished)
break;