videotestsrc: avoid setting caps on buffers
authorWim Taymans <wim.taymans@collabora.co.uk>
Sun, 8 May 2011 11:09:35 +0000 (13:09 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Sun, 8 May 2011 11:14:32 +0000 (13:14 +0200)
We don't need to set caps on buffers anymore, this is now done with a caps
event.

gst/videotestsrc/gstvideotestsrc.c

index addeba9..b4f44c4 100644 (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);