[Mplayer-cvslog] CVS: main/libmpdemux url.c,1.15,1.16
Bertrand Baudet
bertrand at mplayerhq.hu
Mon Sep 9 06:16:32 CEST 2002
- Previous message: [Mplayer-cvslog] CVS: main/libmpdemux demuxer.c,1.109,1.110 open.c,1.53,1.54 stream.h,1.46,1.47 tv.c,1.31,1.32
- Next message: [Mplayer-cvslog] CVS: main xvid_vbr.c,NONE,1.1 xvid_vbr.h,NONE,1.1 Makefile,1.213,1.214 mencoder.c,1.156,1.157
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv7205
Modified Files:
url.c
Log Message:
Applied patch from Gregory Kovriga <gkovriga at techunix.technion.ac.il>
- Url was not properly parsed if an @ was in the file path.
Index: url.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/url.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- url.c 23 Jun 2002 06:27:19 -0000 1.15
+++ url.c 9 Sep 2002 04:16:16 -0000 1.16
@@ -57,6 +57,11 @@
// check if a username:password is given
ptr2 = strstr(ptr1, "@");
+ ptr3 = strstr(ptr1, "/");
+ if( ptr3!=NULL && ptr3<ptr2 ) {
+ // it isn't really a username but rather a part of the path
+ ptr2 = NULL;
+ }
if( ptr2!=NULL ) {
// We got something, at least a username...
int len = ptr2-ptr1;
- Previous message: [Mplayer-cvslog] CVS: main/libmpdemux demuxer.c,1.109,1.110 open.c,1.53,1.54 stream.h,1.46,1.47 tv.c,1.31,1.32
- Next message: [Mplayer-cvslog] CVS: main xvid_vbr.c,NONE,1.1 xvid_vbr.h,NONE,1.1 Makefile,1.213,1.214 mencoder.c,1.156,1.157
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list