summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/input/mms.c8
-rw-r--r--src/input/mmsh.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/input/mms.c b/src/input/mms.c
index e5e4ce027..706fb190c 100644
--- a/src/input/mms.c
+++ b/src/input/mms.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: mms.c,v 1.44 2004/04/06 00:25:29 tmattern Exp $
+ * $Id: mms.c,v 1.45 2004/04/06 06:43:05 tmattern Exp $
*
* MMS over TCP protocol
* based on work from major mms
@@ -56,9 +56,9 @@
/********** logging **********/
#define LOG_MODULE "mms"
#define LOG_VERBOSE
-/*
+
#define LOG
-*/
+
#include "xine_internal.h"
#include "xineutils.h"
@@ -1019,7 +1019,7 @@ static int get_media_packet (mms_t *this) {
lprintf ("sequence=%d\n", sequence);
/* simulate a seek */
- this->current_pos = this->asf_header_len + sequence * this->packet_length;
+ this->current_pos = (off_t)this->asf_header_len + (off_t)sequence * (off_t)this->packet_length;
lprintf ("asf media packet detected, len=%d\n", packet_len);
if (packet_len > (BUF_SIZE)) {
diff --git a/src/input/mmsh.c b/src/input/mmsh.c
index 67c2dc7fa..2b2e3c675 100644
--- a/src/input/mmsh.c
+++ b/src/input/mmsh.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: mmsh.c,v 1.28 2004/04/06 00:25:29 tmattern Exp $
+ * $Id: mmsh.c,v 1.29 2004/04/06 06:43:06 tmattern Exp $
*
* MMS over HTTP protocol
* written by Thibaut Mattern
@@ -860,7 +860,7 @@ static int get_media_packet (mmsh_t *this) {
}
break;
case CHUNK_TYPE_DATA:
- this->current_pos = this->asf_header_len + this->chunk_seq_number * this->packet_length;
+ this->current_pos = (off_t)this->asf_header_len + (off_t)this->chunk_seq_number * (off_t)this->packet_length;
break;
default:
xprintf (this->stream->xine, XINE_VERBOSITY_LOG,