gstreamer: filesrc: set default block size from local define

Tim Müller tpm at kemper.freedesktop.org
Sat Apr 7 07:59:19 PDT 2012


Module: gstreamer
Branch: master
Commit: d05d29d0c99aa60b542bd5b8e98a87ae43b38880
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=d05d29d0c99aa60b542bd5b8e98a87ae43b38880

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Sat Apr  7 15:20:05 2012 +0100

filesrc: set default block size from local define

Doesn't actually change the default value, just makes use of the
define there is. Superficial testing with fakesink and jpegdec did
not reveal improved performance for bigger block sizes, so leave
default as it is.

---

 plugins/elements/gstfilesrc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c
index 87402c8..1f3017a 100644
--- a/plugins/elements/gstfilesrc.c
+++ b/plugins/elements/gstfilesrc.c
@@ -332,6 +332,8 @@ gst_file_src_init (GstFileSrc * src, GstFileSrcClass * g_class)
   src->sequential = DEFAULT_SEQUENTIAL;
 
   src->is_regular = FALSE;
+
+  gst_base_src_set_blocksize (GST_BASE_SRC (src), DEFAULT_BLOCKSIZE);
 }
 
 static void



More information about the gstreamer-commits mailing list