[cheese/wip/fixes: 4/9] Make static string array const
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/wip/fixes: 4/9] Make static string array const
- Date: Wed, 6 Nov 2013 12:07:20 +0000 (UTC)
commit 82d69d7d13a9511a384180ef6dc5224ad339c8b3
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]