[longomatch] Only set the source if it hasn't been set already
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Only set the source if it hasn't been set already
- Date: Mon, 2 Aug 2010 22:44:45 +0000 (UTC)
commit 0b0b29ec7b6682ae8a1991a650d2831fa49c25e0
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Aug 3 00:35:40 2010 +0200
Only set the source if it hasn't been set already
libcesarplayer/src/gst-camera-capturer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libcesarplayer/src/gst-camera-capturer.c b/libcesarplayer/src/gst-camera-capturer.c
index 0e5c3ba..691188b 100644
--- a/libcesarplayer/src/gst-camera-capturer.c
+++ b/libcesarplayer/src/gst-camera-capturer.c
@@ -1162,7 +1162,8 @@ gst_camera_capturer_run (GstCameraCapturer * gcc)
/* the source needs to be created before the 'device-is' is set
* because dshowsrcwrapper can't change the device-name after
* it has been linked for the first time */
- gst_camera_capturer_set_source (gcc, DEFAULT_SOURCE_TYPE, &err);
+ if (!gcc->priv->videosrc)
+ gst_camera_capturer_set_source (gcc, gcc->priv->source_type, &err);
gst_element_set_state (gcc->priv->main_pipeline, GST_STATE_PLAYING);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]