diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-02 00:27:47 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-15 20:02:21 +0800 |
commit | aed7faf9c81e1ca54398d16988b890322bf09889 (patch) | |
tree | 7b2848c855b4e5bcb6c97fcdbd83db0541f47197 /src | |
parent | 2f459725f01467f9352335024b4b51e02fe73a59 (diff) | |
download | gsoc2013-empathy-aed7faf9c81e1ca54398d16988b890322bf09889.tar gsoc2013-empathy-aed7faf9c81e1ca54398d16988b890322bf09889.tar.gz gsoc2013-empathy-aed7faf9c81e1ca54398d16988b890322bf09889.tar.bz2 gsoc2013-empathy-aed7faf9c81e1ca54398d16988b890322bf09889.tar.lz gsoc2013-empathy-aed7faf9c81e1ca54398d16988b890322bf09889.tar.xz gsoc2013-empathy-aed7faf9c81e1ca54398d16988b890322bf09889.tar.zst gsoc2013-empathy-aed7faf9c81e1ca54398d16988b890322bf09889.zip |
VideoSrc: add API to get the input device
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-video-src.c | 11 | ||||
-rw-r--r-- | src/empathy-video-src.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/empathy-video-src.c b/src/empathy-video-src.c index 4017990a2..ceb344215 100644 --- a/src/empathy-video-src.c +++ b/src/empathy-video-src.c @@ -374,3 +374,14 @@ empathy_video_src_change_device (EmpathyGstVideoSrc *self, g_object_set (priv->src, "device", device, NULL); gst_element_set_state (priv->src, state); } + +gchar * +empathy_video_src_dup_device (EmpathyGstVideoSrc *self) +{ + EmpathyGstVideoSrcPrivate *priv = EMPATHY_GST_VIDEO_SRC_GET_PRIVATE (self); + gchar *device; + + g_object_get (priv->src, "device", &device, NULL); + + return device; +} diff --git a/src/empathy-video-src.h b/src/empathy-video-src.h index a65276321..6a88b79eb 100644 --- a/src/empathy-video-src.h +++ b/src/empathy-video-src.h @@ -83,6 +83,7 @@ guint empathy_video_src_get_channel (GstElement *src, void empathy_video_src_change_device (EmpathyGstVideoSrc *self, const gchar *device); +gchar * empathy_video_src_dup_device (EmpathyGstVideoSrc *self); G_END_DECLS |