summaryrefslogtreecommitdiff
path: root/src/input/mmsh.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-10-26 10:48:24 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-10-26 10:48:24 +0000
commit4ccc53146ceecf9658327a570297c15ff5ab375d (patch)
tree825b7b97e03c562f068b8e7074e089038f460e38 /src/input/mmsh.c
parent65755ffce4852d5ddefe3b77bb4f2cbf76fadbfe (diff)
downloadxine-lib-4ccc53146ceecf9658327a570297c15ff5ab375d.tar.gz
xine-lib-4ccc53146ceecf9658327a570297c15ff5ab375d.tar.bz2
fix some prominent compiler warnings
CVS patchset: 5600 CVS date: 2003/10/26 10:48:24
Diffstat (limited to 'src/input/mmsh.c')
-rw-r--r--src/input/mmsh.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/src/input/mmsh.c b/src/input/mmsh.c
index 2ff02a87f..7ff4a9f99 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.17 2003/05/26 17:00:14 tchamp Exp $
+ * $Id: mmsh.c,v 1.18 2003/10/26 10:48:25 mroi Exp $
*
* MMS over HTTP protocol
* written by Thibaut Mattern
@@ -972,22 +972,17 @@ static int get_media_packet (mmsh_t *this) {
return 0;
}
- if (this->chunk_length > CHUNK_SIZE) {
- printf("libmmsh: invalid chunk length\n");
- return 0;
+ len = xine_read_abort (this->stream, this->s, this->buf, this->chunk_length);
+
+ if (len == this->chunk_length) {
+ /* explicit padding with 0 */
+ memset(this->buf + this->chunk_length, 0,
+ this->packet_length - this->chunk_length);
+ this->buf_size = this->packet_length;
+ return 1;
} else {
- len = xine_read_abort (this->stream, this->s, this->buf, this->chunk_length);
-
- if (len == this->chunk_length) {
- /* explicit padding with 0 */
- memset(this->buf + this->chunk_length, 0,
- this->packet_length - this->chunk_length);
- this->buf_size = this->packet_length;
- return 1;
- } else {
- printf("libmmsh: read error, %d != %d\n", len, this->chunk_length);
- return 0;
- }
+ printf("libmmsh: read error, %d != %d\n", len, this->chunk_length);
+ return 0;
}
} else {
return 0;