diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-13 10:01:55 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-16 14:57:58 +0100 |
| commit | 66af02e576dda6673e5e1abdb31dbd807cbb2686 (patch) | |
| tree | 9b4c52c94850b71b134747de10597f51b809d125 | |
| parent | 7786b09212d6ab582db39d0d7d1a4209d36db2ba (diff) | |
| download | poky-66af02e576dda6673e5e1abdb31dbd807cbb2686.tar.gz | |
gstreamer1.0-plugins-base: Include required system headers for isspace() and sscanf()
(From OE-Core rev: c03571af7ed8a35966bcf7fa5ae99f1301ff0026)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-include-required-system-headers-for-isspace-and-ssca.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-include-required-system-headers-for-isspace-and-ssca.patch new file mode 100644 index 0000000000..23c1048a36 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-include-required-system-headers-for-isspace-and-ssca.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From c85a53a41d4e6bfc49c377217ece12a1f330a690 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 12 Aug 2022 22:50:06 -0700 | ||
| 4 | Subject: [PATCH] include required system headers for isspace() and sscanf() | ||
| 5 | functions | ||
| 6 | |||
| 7 | Newer compilers ( clang 15 ) has turned stricter and errors out instead | ||
| 8 | of warning on implicit function declations | ||
| 9 | Fixes | ||
| 10 | gstssaparse.c:297:12: error: call to undeclared library function 'isspace' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] | ||
| 11 | while (isspace(*t)) | ||
| 12 | |||
| 13 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2879] | ||
| 14 | |||
| 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 16 | --- | ||
| 17 | gst/subparse/gstssaparse.c | 2 ++ | ||
| 18 | 1 file changed, 2 insertions(+) | ||
| 19 | |||
| 20 | diff --git a/gst/subparse/gstssaparse.c b/gst/subparse/gstssaparse.c | ||
| 21 | index ff802fa..5ebe678 100755 | ||
| 22 | --- a/gst/subparse/gstssaparse.c | ||
| 23 | +++ b/gst/subparse/gstssaparse.c | ||
| 24 | @@ -24,6 +24,8 @@ | ||
| 25 | #include "config.h" | ||
| 26 | #endif | ||
| 27 | |||
| 28 | +#include <ctype.h> /* isspace() */ | ||
| 29 | +#include <stdio.h> /* sscanf() */ | ||
| 30 | #include <stdlib.h> /* atoi() */ | ||
| 31 | #include <string.h> | ||
| 32 | |||
| 33 | -- | ||
| 34 | 2.37.1 | ||
| 35 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.3.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.3.bb index 7eebbba949..e5e346e5e9 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.3.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.3.bb | |||
| @@ -10,6 +10,7 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-ba | |||
| 10 | file://0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch \ | 10 | file://0001-ENGR00312515-get-caps-from-src-pad-when-query-caps.patch \ |
| 11 | file://0003-viv-fb-Make-sure-config.h-is-included.patch \ | 11 | file://0003-viv-fb-Make-sure-config.h-is-included.patch \ |
| 12 | file://0002-ssaparse-enhance-SSA-text-lines-parsing.patch \ | 12 | file://0002-ssaparse-enhance-SSA-text-lines-parsing.patch \ |
| 13 | file://0001-include-required-system-headers-for-isspace-and-ssca.patch \ | ||
| 13 | " | 14 | " |
| 14 | SRC_URI[sha256sum] = "7e30b3dd81a70380ff7554f998471d6996ff76bbe6fc5447096f851e24473c9f" | 15 | SRC_URI[sha256sum] = "7e30b3dd81a70380ff7554f998471d6996ff76bbe6fc5447096f851e24473c9f" |
| 15 | 16 | ||
