[longomatch] Use avfvideosrc in OS X
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use avfvideosrc in OS X
- Date: Tue, 28 Oct 2014 09:48:09 +0000 (UTC)
commit 7b3e083a341c4d67cff9953c85a2f73e3774b15e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Oct 16 13:38:29 2014 +0200
Use avfvideosrc in OS X
LongoMatch.Multimedia/Utils/VideoDevice.cs | 2 +-
libcesarplayer/common.h | 4 ++--
libcesarplayer/gst-camera-capturer.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.Multimedia/Utils/VideoDevice.cs b/LongoMatch.Multimedia/Utils/VideoDevice.cs
index 6f9b332..66beb3b 100644
--- a/LongoMatch.Multimedia/Utils/VideoDevice.cs
+++ b/LongoMatch.Multimedia/Utils/VideoDevice.cs
@@ -24,7 +24,7 @@ namespace LongoMatch.Multimedia.Utils
public class VideoDevice
{
#if OSTYPE_OS_X
- static string[] devices = new string[1] {"osxvideosrc"};
+ static string[] devices = new string[1] {"avfvideosrc"};
#elif OSTYPE_WINDOWS
static string[] devices = new string[2] {"dshowvideosrc", "ksvideosrc"};
diff --git a/libcesarplayer/common.h b/libcesarplayer/common.h
index 14fa5ab..ced6a7c 100644
--- a/libcesarplayer/common.h
+++ b/libcesarplayer/common.h
@@ -38,8 +38,8 @@
#define SYSVIDEOSRC "ksvideosrc"
#define AUDIOSRC "dshowaudiosrc"
#elif defined(OSTYPE_OS_X)
-#define DVVIDEOSRC "osxvideosrc"
-#define SYSVIDEOSRC "osxvideosrc"
+#define DVVIDEOSRC "avfvideosrc"
+#define SYSVIDEOSRC "avfvideosrc"
#define AUDIOSRC "osxaudiosrc"
#elif defined(OSTYPE_LINUX)
#define DVVIDEOSRC "dv1394src"
diff --git a/libcesarplayer/gst-camera-capturer.c b/libcesarplayer/gst-camera-capturer.c
index 4453c19..7825dd1 100644
--- a/libcesarplayer/gst-camera-capturer.c
+++ b/libcesarplayer/gst-camera-capturer.c
@@ -1347,7 +1347,7 @@ gst_camera_capturer_enum_devices (const gchar * device_name)
if (!g_strcmp0 (device_name, "dv1394src"))
prop_name = "guid";
else if (!g_strcmp0 (device_name, "v4l2src") ||
- !g_strcmp0 (device_name, "osxvideosrc"))
+ !g_strcmp0 (device_name, "avfvideosrc"))
prop_name = "device";
else if (!g_strcmp0 (device_name, "filesrc"))
prop_name = "location";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]