From 74a1e19db28fe1037c12bc5a20ff465e9870b04b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 6 Jan 2014 00:27:20 -0600 Subject: [PATCH] Code cleanup --- src/plugins/video.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/video.c b/src/plugins/video.c index 2a9b10c..bea16a2 100644 --- a/src/plugins/video.c +++ b/src/plugins/video.c @@ -27,6 +27,9 @@ #include #include #include +#ifdef DEBUG +# include +#endif #include #include #include @@ -67,8 +70,8 @@ typedef struct _PhonePlugin int yuv_amp; /* widgets */ - GdkGC * gc; GtkWidget * window; + GdkGC * gc; GtkWidget * area; GtkAllocation area_allocation; GdkPixmap * pixmap; @@ -147,8 +150,8 @@ static VideoPhonePlugin * _video_init(PhonePluginHelper * helper) video->rgb_buffer = NULL; video->rgb_buffer_cnt = 0; video->yuv_amp = 255; - video->gc = NULL; video->window = NULL; + video->gc = NULL; /* check for errors */ if((video->device = string_new(device)) == NULL) {