summaryrefslogtreecommitdiff
path: root/ext/opencv/cameraevent.cpp
diff options
context:
space:
mode:
authorNicola Murino <nicola.murino@gmail.com>2018-12-01 22:48:53 +0100
committerNicolas Dufresne <nicolas@ndufresne.ca>2019-02-02 18:34:10 +0000
commit26cabf9b1f2251df52be9958592b03518832cd9a (patch)
tree620b9defeb59cd472f053da93cd508f1571275ca /ext/opencv/cameraevent.cpp
parentf974246647cd6e895247cfa5b63b5532bbf40188 (diff)
downloadgstreamer-plugins-bad-26cabf9b1f2251df52be9958592b03518832cd9a.tar.gz
opencv: port to c++
Diffstat (limited to 'ext/opencv/cameraevent.cpp')
-rw-r--r--ext/opencv/cameraevent.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/opencv/cameraevent.cpp b/ext/opencv/cameraevent.cpp
index e24e87da3..e1cad4edf 100644
--- a/ext/opencv/cameraevent.cpp
+++ b/ext/opencv/cameraevent.cpp
@@ -39,7 +39,7 @@ gst_camera_event_new_calibrated (gchar * settings)
GstStructure *s;
s = gst_structure_new (GST_CAMERA_EVENT_CALIBRATED_NAME,
- "undistort-settings", G_TYPE_STRING, g_strdup(settings), NULL);
+ "undistort-settings", G_TYPE_STRING, g_strdup (settings), NULL);
calibrated_event = gst_event_new_custom (GST_EVENT_CUSTOM_BOTH, s);
@@ -66,16 +66,16 @@ gst_camera_event_parse_calibrated (GstEvent * event, gchar ** settings)
g_return_val_if_fail (event != NULL, FALSE);
if (GST_EVENT_TYPE (event) != GST_EVENT_CUSTOM_BOTH)
- return FALSE; /* Not a calibrated event */
+ return FALSE; /* Not a calibrated event */
s = gst_event_get_structure (event);
if (s == NULL
|| !gst_structure_has_name (s, GST_CAMERA_EVENT_CALIBRATED_NAME))
return FALSE; /* Not a calibrated event */
- const gchar *str = gst_structure_get_string(s, "undistort-settings");
+ const gchar *str = gst_structure_get_string (s, "undistort-settings");
if (!str)
- return FALSE; /* Not calibrated frame event */
+ return FALSE; /* Not calibrated frame event */
*settings = g_strdup (str);