diff options
author | Teemu Katajisto <ext-teemu.katajisto@nokia.com> | 2009-11-16 15:02:03 +0200 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-04-13 12:00:34 -0300 |
commit | ae57a90fe239f6178240bf5d380ead1fd27b23e3 (patch) | |
tree | 7d64c1cfd1649d53021068da419e15aee274d6f3 /gst/camerabin | |
parent | 779330a6e59cdcf62aa81253f8abf6dc852369f2 (diff) | |
download | gstreamer-plugins-bad-ae57a90fe239f6178240bf5d380ead1fd27b23e3.tar.gz |
camerabin: do not set imagebin sinkpad twice
If we already have a sinkpad, do not get a new one
Diffstat (limited to 'gst/camerabin')
-rw-r--r-- | 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 b1519da3c..56453c670 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) { |