videotestsrc: avoid setting caps on buffers

We don't need to set caps on buffers anymore, this is now done with a caps
event.
This commit is contained in:
Wim Taymans 2011-05-08 13:09:35 +02:00
parent 500bccf6ac
commit d9871e3a51

View file

@ -893,8 +893,6 @@ gst_video_test_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
if (res != GST_FLOW_OK)
goto no_buffer;
gst_buffer_set_caps (outbuf, GST_PAD_CAPS (GST_BASE_SRC_PAD (psrc)));
data = gst_buffer_map (outbuf, &size, NULL, GST_MAP_WRITE);
memset (data, 0, size);
src->tmpline_u8 = g_malloc (src->width + 8);