camerabin2: Fix renegotiate event pushing

Use a hack to make the event upstream to reach the camera source
instead of going downstream and being useless.

This was already fixed this way for image srcpad renegotiate and
video srcpad was left unfixed.
This commit is contained in:
Thiago Santos 2010-12-26 20:35:47 -03:00
parent 1c761196f7
commit 203508079a

View file

@ -598,7 +598,7 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
if (pad) {
GST_DEBUG_OBJECT (camera, "Pushing renegotiate on %s",
GST_PAD_NAME (pad));
gst_pad_push_event (pad, gst_camera_bin_new_event_renegotiate ());
GST_PAD_EVENTFUNC (pad) (pad, gst_camera_bin_new_event_renegotiate ());
gst_object_unref (pad);
}
}