[Mplayer-cvslog] CVS: main/libmpdemux asf_mmst_streaming.c,1.2,1.3
Bertrand Baudet
bertrand at mplayerhq.hu
Sat Sep 7 22:37:13 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv8066
Modified Files:
asf_mmst_streaming.c
Log Message:
Fixed an unknown command. Looks like it's a new command from WMS9.
Changed all the exit by return -1
Index: asf_mmst_streaming.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asf_mmst_streaming.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- asf_mmst_streaming.c 3 Sep 2002 01:25:31 -0000 1.2
+++ asf_mmst_streaming.c 7 Sep 2002 20:37:09 -0000 1.3
@@ -413,7 +413,7 @@
if ( (pre_header[7] != 0xb0) || (pre_header[6] != 0x0b) || (pre_header[5] != 0xfa) || (pre_header[4] != 0xce) )
{
printf ("missing signature\n");
- exit (1);
+ return -1;
}
command = get_32 (data, 24) & 0xFFFF;
@@ -426,10 +426,16 @@
printf ("everything done. Thank you for downloading a media file containing proprietary and patentend technology.\n");
return 0;
}
+ else if (command == 0x21 )
+ {
+ // Looks like it's new in WMS9
+ // Unknown command, but ignoring it seems to work.
+ return 0;
+ }
else if (command != 0x05)
{
printf ("unknown command %02x\n", command);
- exit (1);
+ return -1;
}
}
}
@@ -482,7 +488,8 @@
if( ret<0 ) {
- printf("nop_streaming_read error : %s\n",strerror(errno));
+ printf("get_media_packet error : %s\n",strerror(errno));
+ return -1;
}
More information about the MPlayer-cvslog
mailing list