[longomatch] Set the correct property name for the capture device in OS X



commit c2b43783141c4839910dcd501dda3356ad86c1f8
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Feb 3 16:08:04 2015 +0100

    Set the correct property name for the capture device in OS X

 libcesarplayer/gst-camera-capturer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libcesarplayer/gst-camera-capturer.c b/libcesarplayer/gst-camera-capturer.c
index 7ddf0d6..eb24350 100644
--- a/libcesarplayer/gst-camera-capturer.c
+++ b/libcesarplayer/gst-camera-capturer.c
@@ -300,6 +300,8 @@ gst_camera_capturer_update_device_id (GstCameraCapturer * gcc)
     prop_name = "guid";
   else if (!g_strcmp0 (gcc->priv->source_element_name, "v4l2src"))
     prop_name = "device";
+  else if (!g_strcmp0 (gcc->priv->source_element_name, "avfvideosrc"))
+    prop_name = "device";
   else if (!g_strcmp0 (gcc->priv->source_element_name, "filesrc"))
     prop_name = "location";
   else if (!g_strcmp0 (gcc->priv->source_element_name, "gsettingsvideosrc"))


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