Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 1b98924

Browse files
committed
Fix build
1 parent d97adcd commit 1b98924

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

include/utils/Image.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ class Image
1717
/// Default constructor for an image
1818
///
1919
Image() :
20-
Image(1, 1)
20+
_width(1),
21+
_height(1),
22+
_pixels(new Pixel_T[2]),
23+
_endOfPixels(_pixels + 1)
2124
{
25+
memset(_pixels, 0, 2*sizeof(Pixel_T));
2226
}
2327

2428
///

src/hyperiond/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ target_link_libraries(hyperiond
99
jsonserver
1010
protoserver
1111
boblightserver
12-
v4l2-grabber
1312
)
1413

1514
if (ENABLE_DISPMANX)
1615
target_link_libraries(hyperiond dispmanx-grabber)
1716
endif (ENABLE_DISPMANX)
17+
18+
if (ENABLE_V4L2)
19+
target_link_libraries(hyperiond v4l2-grabber)
20+
endif (ENABLE_V4L2)

0 commit comments

Comments
 (0)