camorama r367 - in trunk: . src
- From: herzi svn gnome org
- To: svn-commits-list gnome org
- Subject: camorama r367 - in trunk: . src
- Date: Wed, 28 May 2008 16:15:47 +0000 (UTC)
Author: herzi
Date: Wed May 28 16:15:47 2008
New Revision: 367
URL: http://svn.gnome.org/viewvc/camorama?rev=367&view=rev
Log:
2008-05-28 Sven Herzberg <sven imendio com>
Small code cleanup
* src/main.c: (main): merged to if-trees with the same condition
Modified:
trunk/ChangeLog
trunk/src/main.c
Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c (original)
+++ trunk/src/main.c Wed May 28 16:15:47 2008
@@ -237,13 +237,12 @@
cam->tmp =
malloc (cam->vid_cap.maxwidth * cam->vid_cap.maxheight * cam->depth);
//cam->tmp = NULL;
- /* set the buffer size */
- if (cam->read == FALSE) {
- set_buffer (cam);
- }
/* initialize cam and create the window */
if (cam->read == FALSE) {
+ /* set the buffer size */
+ set_buffer (cam);
+
cam->capture = capture_strategy_mmap_new (cam);
} else {
cam->capture = capture_strategy_read_new (cam);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]