v4l2src: call set_caps method of baseclass
Call the baseclass set_caps function to make it send the caps event and properly trigger the negotiation functions.
This commit is contained in:
parent
fcbe26cd6f
commit
1b1fb68c23
@ -421,9 +421,7 @@ gst_v4l2src_negotiate (GstBaseSrc * basesrc)
|
|||||||
result = TRUE;
|
result = TRUE;
|
||||||
} else if (gst_caps_is_fixed (caps)) {
|
} else if (gst_caps_is_fixed (caps)) {
|
||||||
/* yay, fixed caps, use those then */
|
/* yay, fixed caps, use those then */
|
||||||
gst_pad_push_event (GST_BASE_SRC_PAD (basesrc),
|
result = gst_base_src_set_caps (basesrc, caps);
|
||||||
gst_event_new_caps (caps));
|
|
||||||
result = gst_v4l2src_set_caps (basesrc, caps);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user