From: Wim Taymans Date: Sun, 8 May 2011 11:09:35 +0000 (+0200) Subject: videotestsrc: avoid setting caps on buffers X-Git-Tag: 1.19.3~511^2~7698 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9871e3a51066601bb1f07c9a5d581d272e06261;p=platform%2Fupstream%2Fgstreamer.git videotestsrc: avoid setting caps on buffers We don't need to set caps on buffers anymore, this is now done with a caps event. --- diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c index addeba9..b4f44c4 100644 --- a/gst/videotestsrc/gstvideotestsrc.c +++ b/gst/videotestsrc/gstvideotestsrc.c @@ -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);