summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2012-07-17 16:23:28 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-09-10 12:31:21 -0400
commite6070b441b87e9522bba803dbecaf542ab89bfc9 (patch)
tree36120cc4cafa87057071eacd853bd83973a9ecb5
parent6b8c6fa4c70835c4b30490efd69b70bd11eb7be5 (diff)
uvch264: fix typo, set v4l2src state to NULL only if device changed
-rw-r--r--sys/uvch264/gstuvch264_src.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/uvch264/gstuvch264_src.c b/sys/uvch264/gstuvch264_src.c
index 1819cfbe6..fa1ac2f43 100644
--- a/sys/uvch264/gstuvch264_src.c
+++ b/sys/uvch264/gstuvch264_src.c
@@ -2244,7 +2244,7 @@ ensure_v4l2src (GstUvcH264Src * self)
"device", self->device, "num-buffers", self->num_buffers, NULL);
/* Set to NULL if the device changed */
- if (!g_strcmp0 (device, self->device))
+ if (g_strcmp0 (device, self->device))
gst_element_set_state (self->v4l2_src, GST_STATE_NULL);
g_free (device);