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:
Stefan Kost 2010-09-02 14:15:29 +03:00
parent 4375e998ee
commit def17d30f4

View file

@ -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);