patches/mpplugin-03-strstr.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 283 48eddd340291
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
283
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     1
--- mplayerplug-in/Source/plugin-list.cpp-p3	Thu Feb 15 14:53:00 2007
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     2
+++ mplayerplug-in/Source/plugin-list.cpp	Sat May 19 12:03:48 2007
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     3
@@ -140,9 +140,9 @@
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     4
     char tagtarget[128];
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     5
     char tagurl[1024];
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     6
 
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     7
-    endvideo = strstr(smilbuffer, "</video");
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     8
-    startarea = strstr(smilbuffer, "<area");
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     9
-
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    10
+    endvideo = strstr((char *)smilbuffer, "</video");
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    11
+    startarea = strstr((char *)smilbuffer, "<area");
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    12
+ 
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    13
     while (startarea && startarea < endvideo) {
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    14
 	start = strstr(startarea + 5, "begin=");
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    15
 	if (start) {