Code cleanup
This commit is contained in:
parent
5fdad562a9
commit
74a1e19db2
@ -27,6 +27,9 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#ifdef DEBUG
|
||||||
|
# include <stdio.h>
|
||||||
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <System.h>
|
#include <System.h>
|
||||||
@ -67,8 +70,8 @@ typedef struct _PhonePlugin
|
|||||||
int yuv_amp;
|
int yuv_amp;
|
||||||
|
|
||||||
/* widgets */
|
/* widgets */
|
||||||
GdkGC * gc;
|
|
||||||
GtkWidget * window;
|
GtkWidget * window;
|
||||||
|
GdkGC * gc;
|
||||||
GtkWidget * area;
|
GtkWidget * area;
|
||||||
GtkAllocation area_allocation;
|
GtkAllocation area_allocation;
|
||||||
GdkPixmap * pixmap;
|
GdkPixmap * pixmap;
|
||||||
@ -147,8 +150,8 @@ static VideoPhonePlugin * _video_init(PhonePluginHelper * helper)
|
|||||||
video->rgb_buffer = NULL;
|
video->rgb_buffer = NULL;
|
||||||
video->rgb_buffer_cnt = 0;
|
video->rgb_buffer_cnt = 0;
|
||||||
video->yuv_amp = 255;
|
video->yuv_amp = 255;
|
||||||
video->gc = NULL;
|
|
||||||
video->window = NULL;
|
video->window = NULL;
|
||||||
|
video->gc = NULL;
|
||||||
/* check for errors */
|
/* check for errors */
|
||||||
if((video->device = string_new(device)) == NULL)
|
if((video->device = string_new(device)) == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user