Author: fejj
Date: 2008-01-26 12:24:09 -0500 (Sat, 26 Jan 2008)
New Revision: 93999
Modified:
trunk/moon/src/media.cpp
Log:
up the minimum required offset before atempting a TryOpen
Modified: trunk/moon/src/media.cpp
===================================================================
--- trunk/moon/src/media.cpp 2008-01-26 17:02:32 UTC (rev 93998)
+++ trunk/moon/src/media.cpp 2008-01-26 17:24:09 UTC (rev 93999)
@@ -657,7 +657,7 @@
// TODO: Honor BufferTimeProperty and calculate the buffering size from that.
-#define BUFFERING_SIZE (1024 * 1024)
+#define BUFFERING_SIZE (5 * 1024 * 1024)
void
@@ -758,7 +758,7 @@
downloaded_file->Write (buf, offset, n);
// FIXME: How much do we actually have to download in order to
try to open the file?
- if (!(flags & BufferingMedia) && offset > 1024 && (part_name ==
NULL || part_name[0] == 0))
+ if (!(flags & BufferingMedia) && offset > 16384 && (part_name
== NULL || part_name[0] == 0))
TryOpen ();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches