summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVedant Paranjape <vedantparanjape160201@gmail.com>2021-07-28 20:07:37 +0530
committerPaul Elder <paul.elder@ideasonboard.com>2021-08-05 14:32:02 +0900
commit0e8d8fbd4e47217c897b410cfe0163b88ae1dade (patch)
tree609df44982d081456320ed3aa084f665b7fe6320
parent5fd4bb03371abe3b804462abe2df51f2cedba534 (diff)
gstreamer: Update format specifier in Request Pad template
Change format specifier %s to %u in name template field of request pad template. Pad names are as follows, src_0, src_1, etc. So, instead of using string format specifier, use unsigned integer format specifier. Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
-rw-r--r--src/gstreamer/gstlibcamerasrc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gstreamer/gstlibcamerasrc.cpp b/src/gstreamer/gstlibcamerasrc.cpp
index b18f1efb..b243aeb3 100644
--- a/src/gstreamer/gstlibcamerasrc.cpp
+++ b/src/gstreamer/gstlibcamerasrc.cpp
@@ -149,7 +149,7 @@ GstStaticPadTemplate src_template = {
/* More pads can be requested in state < PAUSED */
GstStaticPadTemplate request_src_template = {
- "src_%s", GST_PAD_SRC, GST_PAD_REQUEST, TEMPLATE_CAPS
+ "src_%u", GST_PAD_SRC, GST_PAD_REQUEST, TEMPLATE_CAPS
};
void