[cheese/wip/fixes: 3/8] Make static string array const



commit 5bbb880abaea11db3358b96a2596bcf00ffb1cda
Author: David King <amigadave amigadave com>
Date:   Tue Nov 5 15:29:18 2013 +0000

    Make static string array const

 libcheese/cheese-camera-device.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-camera-device.c b/libcheese/cheese-camera-device.c
index 4b6ada4..b3b10ca 100644
--- a/libcheese/cheese-camera-device.c
+++ b/libcheese/cheese-camera-device.c
@@ -76,7 +76,7 @@ enum CheeseCameraDeviceError
 GST_DEBUG_CATEGORY (cheese_camera_device_cat);
 #define GST_CAT_DEFAULT cheese_camera_device_cat
 
-static gchar *supported_formats[] = {
+static const gchar const *supported_formats[] = {
   "video/x-raw",
   NULL
 };
@@ -181,7 +181,9 @@ compare_formats (gconstpointer a, gconstpointer b)
  * Returns: the filtered #GstCaps
  */
 static GstCaps *
-cheese_camera_device_filter_caps (CheeseCameraDevice *device, GstCaps *caps, GStrv formats)
+cheese_camera_device_filter_caps (CheeseCameraDevice *device,
+                                  GstCaps *caps,
+                                  const gchar const *formats[])
 {
   GstCaps *filter;
   GstCaps *allowed;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]