mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 16:52:42 +00:00
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:
parent
500bccf6ac
commit
d9871e3a51
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue