mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
fakesrc: fix use of empty subbuffers
Remove a short cut that was ignoring src->data allocation mode. All the called code-path below handle size==0.
This commit is contained in:
parent
4375e998ee
commit
def17d30f4
1 changed files with 1 additions and 5 deletions
|
@ -717,13 +717,9 @@ static GstBuffer *
|
|||
gst_fake_src_create_buffer (GstFakeSrc * src)
|
||||
{
|
||||
GstBuffer *buf;
|
||||
guint size;
|
||||
guint size = gst_fake_src_get_size (src);
|
||||
gboolean dump = src->dump;
|
||||
|
||||
size = gst_fake_src_get_size (src);
|
||||
if (size == 0)
|
||||
return gst_buffer_new ();
|
||||
|
||||
switch (src->data) {
|
||||
case FAKE_SRC_DATA_ALLOCATE:
|
||||
buf = gst_fake_src_alloc_buffer (src, size);
|
||||
|
|
Loading…
Reference in a new issue