]> git.sesse.net Git - vlc/commitdiff
* modules/access/satellite/access.c: Read blocks multiple of 1024 bytes
authorChristophe Massiot <massiot@videolan.org>
Wed, 3 Mar 2004 10:49:50 +0000 (10:49 +0000)
committerChristophe Massiot <massiot@videolan.org>
Wed, 3 Mar 2004 10:49:50 +0000 (10:49 +0000)
  (because others do it - no idea if it helps, though)

modules/access/satellite/access.c

index e44dd5c57ea771a49ec9a1ee825c91fdb70cd91a..6681bcb40f8e6c00a671d22043176356045745ab 100644 (file)
@@ -48,7 +48,9 @@
 
 #include "dvb.h"
 
-#define SATELLITE_READ_ONCE 80
+/* These are for the Dreambox port. I have no idea whether they're correct
+ * for other DVB adapters. --Meuuh */
+#define SATELLITE_READ_ONCE (64 * 1024)
 #define DMX_BUFFER_SIZE (1024 * 1024)
 
 /*****************************************************************************
@@ -360,7 +362,7 @@ int E_(Open) ( vlc_object_t *p_this )
 
     vlc_mutex_unlock( &p_input->stream.stream_lock );
 
-    p_input->i_mtu = SATELLITE_READ_ONCE * TS_PACKET_SIZE;
+    p_input->i_mtu = SATELLITE_READ_ONCE;
     p_input->stream.i_method = INPUT_METHOD_SATELLITE;
 
     return 0;