Skip to content

Commit

Permalink
fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Aug 20, 2024
1 parent fd27788 commit 7484be7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,12 @@ int main() {
return -1;
}

printf("A\n");

ok = text_create(&params, &text);
if (!ok) {
pipe_write_error(pipe_video_fd, "text_create(): %s", text_get_error());
return -1;
}

printf("B\n");

ok = encoder_create(
&params,
camera_get_mode_stride(cam),
Expand Down
5 changes: 2 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ project(
version : '1.0.0',
meson_version : '>=1.0.0',
default_options: [
'c_std=c18',
# 'c_std=c18',
'cpp_std=c++17',
'buildtype=release',
'strip=true',
# 'strip=true',
'prefix=/'
]
)
Expand Down Expand Up @@ -47,7 +47,6 @@ libcamera = subproject(
'libcamera',
default_options : [
'buildtype=release',
'strip=false',
'wrap_mode=forcefallback',
'lc-compliance=disabled',
'ipas=rpi/vc4',
Expand Down
2 changes: 0 additions & 2 deletions parameters.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#define _DEFAULT_SOURCE
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stdarg.h>
#include <stdio.h>
#include <time.h>

#include <linux/videodev2.h>

Expand Down
3 changes: 0 additions & 3 deletions text.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#define _DEFAULT_SOURCE
#include <string.h>
#include <sys/time.h>
#include <time.h>

#include <ft2build.h>
Expand Down

0 comments on commit 7484be7

Please sign in to comment.