From ad9822dea731f7c254b5761bc2f1765e9f21dd67 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 1 May 2012 14:31:58 -0300 Subject: [PATCH] wrappercamerabinsrc: change output-selector negotiation mode In 0.10 camerabin2 controlled the negotiation strictly and the output-selector wouldn't forward setcaps calls. In 0.11 the renegotiation events are already in core and we can allow the pipeline to handle it without much control from camerabin part (I hope), so this patch makes output-selector forward caps negotiation events to the active pad. --- gst/camerabin2/gstwrappercamerabinsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c index 778c5e1cbb..3721d6f215 100644 --- a/gst/camerabin2/gstwrappercamerabinsrc.c +++ b/gst/camerabin2/gstwrappercamerabinsrc.c @@ -508,7 +508,7 @@ gst_wrapper_camera_bin_src_construct_pipeline (GstBaseCameraSrc * bcamsrc) self->output_selector = gst_element_factory_make ("output-selector", "outsel"); - g_object_set (self->output_selector, "pad-negotiation-mode", 0, NULL); + g_object_set (self->output_selector, "pad-negotiation-mode", 2, NULL); gst_bin_add (GST_BIN (self), self->output_selector); { GstPad *pad = gst_element_get_static_pad (self->output_selector, "sink");