v4l2: disable renegotiation

We can't yet wait for the bufferpool to DRAIN before starting renegotiation so
disable it for now.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=682770
This commit is contained in:
Wim Taymans 2012-09-11 15:38:23 +02:00
parent 538578f345
commit d1b26e1d59

View file

@ -132,6 +132,7 @@ static gboolean gst_v4l2src_decide_allocation (GstBaseSrc * src,
GstQuery * query);
static GstFlowReturn gst_v4l2src_fill (GstPushSrc * src, GstBuffer * out);
static GstCaps *gst_v4l2src_fixate (GstBaseSrc * basesrc, GstCaps * caps);
static gboolean gst_v4l2src_event (GstBaseSrc * src, GstEvent * event);
static gboolean gst_v4l2src_negotiate (GstBaseSrc * basesrc);
static void gst_v4l2src_set_property (GObject * object, guint prop_id,
@ -219,6 +220,7 @@ gst_v4l2src_class_init (GstV4l2SrcClass * klass)
basesrc_class->stop = GST_DEBUG_FUNCPTR (gst_v4l2src_stop);
basesrc_class->query = GST_DEBUG_FUNCPTR (gst_v4l2src_query);
basesrc_class->fixate = GST_DEBUG_FUNCPTR (gst_v4l2src_fixate);
basesrc_class->event = GST_DEBUG_FUNCPTR (gst_v4l2src_event);
basesrc_class->negotiate = GST_DEBUG_FUNCPTR (gst_v4l2src_negotiate);
basesrc_class->decide_allocation =
GST_DEBUG_FUNCPTR (gst_v4l2src_decide_allocation);
@ -342,6 +344,22 @@ gst_v4l2src_fixate (GstBaseSrc * basesrc, GstCaps * caps)
}
static gboolean
gst_v4l2src_event (GstBaseSrc * src, GstEvent * event)
{
GST_DEBUG_OBJECT (src, "handle event %" GST_PTR_FORMAT, event);
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_RECONFIGURE:
gst_pad_check_reconfigure (GST_BASE_SRC_PAD (src));
break;
default:
break;
}
return GST_BASE_SRC_CLASS (parent_class)->event (src, event);
}
static gboolean
gst_v4l2src_negotiate (GstBaseSrc * basesrc)
{