aboutsummaryrefslogtreecommitdiff
path: root/src/talker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/talker.c')
-rw-r--r--src/talker.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/talker.c b/src/talker.c
index 0ba2994..c481570 100644
--- a/src/talker.c
+++ b/src/talker.c
@@ -31,21 +31,18 @@ void on_send(char *buf, int *bytes)
int main(void)
{
- int ret = 1;
-
camera_params params = {0};
- params.device = "/dev/video0";
+ params.device = CAM;
params.x_res = 160;
params.y_res = 120;
camera_init(&cam_handle, params);
if(talker("4950", "localhost", &on_send) != 0) {
- goto finish;
+ err("talker: failed\n");
+ return 1;
}
- ret = 0;
-finish:
camera_deinit(&cam_handle);
- return ret;
+ return 0;
}