From ae57a90fe239f6178240bf5d380ead1fd27b23e3 Mon Sep 17 00:00:00 2001 From: Teemu Katajisto Date: Mon, 16 Nov 2009 15:02:03 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/camerabin/camerabinimage.c b/gst/camerabin/camerabinimage.c index b1519da3c8..56453c6704 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) {