aboutsummaryrefslogtreecommitdiffstats
path: root/src/camorama-window.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-20 12:00:40 +0900
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-23 14:57:52 -0300
commit2a14f1057ec37923a88dc7dea381299a32a22f7f (patch)
tree78c7e536692f7eab1fee75379d07b88d05425887 /src/camorama-window.c
parentc391b533c1e821a337136f2b58fa6635ab728659 (diff)
convert camorama to use the V4L2 API
Currently, camorama is based on a very legacy API (V4L version 1). This got removed from Kernel a long time ago, still at Kernel 2.6.x cycles. It works thanks to libv4l1 emulation, but we may get rid of it soon at v4l-utils. So, let's just move on and implement V4L2 API support directly on Camorama, instead of relying on a compatibility layer.
Diffstat (limited to 'src/camorama-window.c')
-rw-r--r--src/camorama-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/camorama-window.c b/src/camorama-window.c
index 47c04fa..bff1412 100644
--- a/src/camorama-window.c
+++ b/src/camorama-window.c
@@ -243,8 +243,8 @@ load_interface(cam* cam) {
* glade_xml_signal_autoconnect(xml);
* this won't work, can't pass data to callbacks. have to do it individually :(*/
- title = g_strdup_printf ("Camorama - %s - %dx%d", cam->vid_cap.name,
- cam->x, cam->y);
+ title = g_strdup_printf ("Camorama - %s - %dx%d", cam->name,
+ cam->width, cam->height);
gtk_window_set_title (GTK_WINDOW
(glade_xml_get_widget (cam->xml, "main_window")),
title);
@@ -459,7 +459,7 @@ load_interface(cam* cam) {
(cam->xml, "string_entry"), cam->usestring);
gtk_widget_set_size_request (glade_xml_get_widget (cam->xml, "da"),
- cam->x, cam->y);
+ cam->width, cam->height);
prefswindow = glade_xml_get_widget (cam->xml, "prefswindow");
}

Privacy Policy