[rygel] core: Set 65KiB blocksize on gst source element



commit 78df652f211acc78778ed1a9ef480e74ce83efcb
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon May 10 02:35:09 2010 +0300

    core: Set 65KiB blocksize on gst source element
    
    The default is usually 4KiB which is not really big enough.

 src/rygel/rygel-media-item.vala |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/src/rygel/rygel-media-item.vala b/src/rygel/rygel-media-item.vala
index 010c54c..34c95df 100644
--- a/src/rygel/rygel-media-item.vala
+++ b/src/rygel/rygel-media-item.vala
@@ -90,11 +90,18 @@ public class Rygel.MediaItem : MediaObject {
             src = Element.make_from_uri (URIType.SRC, this.uris.get (0), null);
         }
 
-        if (src != null &&
-            src.get_class ().find_property ("tcp-timeout") != null) {
-            // For rtspsrc since some RTSP sources takes a while to start
-            // transmitting
-            src.tcp_timeout = (int64) 60000000;
+        if (src != null) {
+            if (src.get_class ().find_property ("blocksize") != null) {
+                // The default is usually 4KiB which is not really big enough
+                // for most cases so we set this to 65KiB.
+                src.blocksize = (long) 65536;
+            }
+
+            if (src.get_class ().find_property ("tcp-timeout") != null) {
+                // For rtspsrc since some RTSP sources takes a while to start
+                // transmitting
+                src.tcp_timeout = (int64) 60000000;
+            }
         }
 
         return src;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]