[gst-cvs] gst-plugins-bad: camerabin: do not set imagebin sinkpad twice
Thiago Sousa Santos
thiagoss at kemper.freedesktop.org
Tue Apr 13 08:46:26 PDT 2010
Module: gst-plugins-bad
Branch: master
Commit: ae57a90fe239f6178240bf5d380ead1fd27b23e3
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=ae57a90fe239f6178240bf5d380ead1fd27b23e3
Author: Teemu Katajisto <ext-teemu.katajisto at nokia.com>
Date: Mon Nov 16 15:02:03 2009 +0200
camerabin: do not set imagebin sinkpad twice
If we already have a sinkpad, do not get a new one
---
gst/camerabin/camerabinimage.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gst/camerabin/camerabinimage.c b/gst/camerabin/camerabinimage.c
index b1519da..56453c6 100644
--- a/gst/camerabin/camerabinimage.c
+++ b/gst/camerabin/camerabinimage.c
@@ -432,7 +432,8 @@ gst_camerabin_image_create_elements (GstCameraBinImage * img)
"ffmpegcolorspace"))) {
goto done;
}
- img_sinkpad = gst_element_get_static_pad (csp, "sink");
+ if (!img_sinkpad)
+ img_sinkpad = gst_element_get_static_pad (csp, "sink");
}
if (img->app_enc) {
More information about the Gstreamer-commits
mailing list