aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 20:20:17 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 20:20:17 (GMT)
commited6913fd860f88a9005a08dffec1e7af1df1702c (patch)
tree199fc77806d3014bcba5696790ef59b1495fb7fe
parent640247560d57e3040b6fea5420b3dc270d3513ff (diff)
callbacks: don't print resolution by default
This is a debug message. Only print when needed. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--src/callbacks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index 83f397e..d731b86 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -381,7 +381,8 @@ void on_change_size_activate(GtkWidget *widget, cam_t *cam)
cam->width = width;
cam->height = height;
- printf("name = %s\n", name);
+ if (cam->debug == TRUE)
+ printf("name = %s\n", name);
if (cam->read == FALSE)
stop_streaming(cam);

Privacy Policy