[Mplayerplug-in-cvs] mplayerplug-in/Source plugin-list.cpp,1.6,1.7 plugin-setup.cpp,1.5,1.6
Brought to you by:
kdekorte
From: <kde...@us...> - 2004-02-18 03:43:48
|
Update of /cvsroot/mplayerplug-in/mplayerplug-in/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1577/Source Modified Files: plugin-list.cpp plugin-setup.cpp Log Message: Make video/x-ms-wmp videos work from http://cgi.omroep.nl/cgi-bin/streams?/tv/nos/journaal/bb.laatste.asf Index: plugin-list.cpp =================================================================== RCS file: /cvsroot/mplayerplug-in/mplayerplug-in/Source/plugin-list.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** plugin-list.cpp 17 Feb 2004 22:20:34 -0000 1.6 --- plugin-list.cpp 18 Feb 2004 03:34:33 -0000 1.7 *************** *** 559,563 **** --- 559,589 ---- } } + + if (strncasecmp(buffer, "mms://", 6) == 0) { + p = buffer; + while (p != NULL) { + i = size - ((long) p - (long) buffer); + p = (char *) memmem(p, i, "mms://", 6); + if (p == NULL) { + break; + } else { + snprintf(url, 1024, "%s", p); + sub = strchr(url, 0xd); + if (sub != NULL) + sub[0] = '\0'; + sub = strchr(url, 0xa); + if (sub != NULL) + sub[0] = '\0'; + if (DEBUG) + printf("URL: %s\n", url); + parent->playlist = 1; + addToList(instance, url, parent, -1); + p = p + strlen(url) + 1; + found = 1; + } + } + } + if (!found) Index: plugin-setup.cpp =================================================================== RCS file: /cvsroot/mplayerplug-in/mplayerplug-in/Source/plugin-setup.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** plugin-setup.cpp 17 Feb 2004 22:20:34 -0000 1.5 --- plugin-setup.cpp 18 Feb 2004 03:34:33 -0000 1.6 *************** *** 186,189 **** --- 186,190 ---- "video/x-ms-asf:asf,asx:Windows Media;" "video/x-ms-wmv:wmv:Windows Media;" + "video/x-ms-wmp:wmp:Windows Media;" "video/x-ms-wvx:wvx:Windows Media;" "audio/x-ms-wax:wax:Windows Media;" |