wrappercamerabinsrc: change output-selector negotiation mode
authorThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 1 May 2012 17:31:58 +0000 (14:31 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 1 May 2012 18:20:49 +0000 (15:20 -0300)
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

index 778c5e1cbb0d3765b62418b31e021055b64ab4a1..3721d6f215873548d3634a61d4b9ff4217abaf95 100644 (file)
@@ -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");