[Mplayerplug-in-cvs] mplayerplug-in/Source plugin-setup.cpp, 1.138, 1.139
Brought to you by:
kdekorte
|
From: Kevin D. <kde...@us...> - 2007-08-23 12:58:59
|
Update of /cvsroot/mplayerplug-in/mplayerplug-in/Source In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1434/Source Modified Files: plugin-setup.cpp Log Message: Make qtsrc locations work, makes some apple sites work Index: plugin-setup.cpp =================================================================== RCS file: /cvsroot/mplayerplug-in/mplayerplug-in/Source/plugin-setup.cpp,v retrieving revision 1.138 retrieving revision 1.139 diff -C2 -d -r1.138 -r1.139 *** plugin-setup.cpp 14 Jun 2007 03:24:49 -0000 1.138 --- plugin-setup.cpp 23 Aug 2007 12:58:52 -0000 1.139 *************** *** 524,527 **** --- 524,528 ---- char parse[1000]; char *cp; + char *tmp; if (DEBUG) *************** *** 630,635 **** } ! if ((strncasecmp(parameters->argn[i], "href", 4) == 0) ! || (strncasecmp(parameters->argn[i], "qtsrc", 5) == 0)) { instance->href = strdup(parameters->argv[i]); if (strncasecmp(parameters->argv[i], "file://", 7) == 0) --- 631,636 ---- } ! if (strncasecmp(parameters->argn[i], "href", 4) == 0) { ! instance->href = strdup(parameters->argv[i]); if (strncasecmp(parameters->argv[i], "file://", 7) == 0) *************** *** 642,645 **** --- 643,662 ---- } + if (strncasecmp(parameters->argn[i], "qtsrc", 5) == 0) { + instance->href = (char *)malloc(1024); + instance->href = strcpy(instance->href,instance->url); + tmp = rindex(instance->href,'/') + sizeof(char); + if (tmp) + tmp[0] = '\0'; + instance->href = strncat(instance->href,parameters->argv[i],1024); + if (strncasecmp(parameters->argv[i], "file://", 7) == 0) + fullyQualifyURL(instance, parameters->argv[i], + instance->href); + if (strstr(parameters->argv[i], "<") != NULL) + fullyQualifyURL(instance, parameters->argv[i], + instance->href); + instance->state = STATE_HAVEURL; + } + if (strncasecmp(parameters->argn[i], "autohref", 8) == 0) { |