[Bug 682770] v4l2src: should renegotiate

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Jul 8 07:02:45 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=682770

Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reynaldo at osg.samsung.com

--- Comment #42 from Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com> ---

>From 3cfec119b1771da6cb5eda476bf0217f5253a27a Mon Sep 17 00:00:00 2001
From: "Reynaldo H. Verdejo Pinochet" <reynaldo at osg.samsung.com>
Date: Fri, 7 Jul 2017 23:49:44 -0700
Subject: [PATCH] examples: v4l2: fix wrong initializations brought by
 4e8ad583022671c5

https://bugzilla.gnome.org/show_bug.cgi?id=682770
---
 tests/examples/v4l2/v4l2src-renegotiate.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/examples/v4l2/v4l2src-renegotiate.c
b/tests/examples/v4l2/v4l2src-renegotiate.c
index c56dde8cb..1bf8891c7 100644
--- a/tests/examples/v4l2/v4l2src-renegotiate.c
+++ b/tests/examples/v4l2/v4l2src-renegotiate.c
@@ -27,17 +27,17 @@
 #include <gst/gst.h>

 /* Options */
-static gchar *device = "/dev/video0";
-static gchar *videosink = "autovideosink";
+static const gchar *device = "/dev/video0";
+static const gchar *videosink = "autovideosink";
 static gboolean enable_dmabuf = FALSE;
-static gchar *def_resolutions[] = {
+static const gchar *def_resolutions[] = {
   "320x240",
   "1280x720",
   "640x480",
   NULL
 };

-static gchar **resolutions = def_resolutions;
+static const gchar **resolutions = def_resolutions;

 static GOptionEntry entries[] = {
   {"device", 'd', 0, G_OPTION_ARG_STRING, &device, "V4L2 Camera Device",
-- 
2.11.0

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list