aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/xmms-avi/files/patch-lib::videocodec::codekeeper.cpp
blob: 0c16283359431cdb5a23157f7105e13926802a3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- lib/videocodec/codeckeeper.cpp.orig Sun Feb  4 14:37:51 2001
+++ lib/videocodec/codeckeeper.cpp  Sun Dec  7 02:30:26 2003
@@ -253,20 +253,19 @@
     }      
 }
 
-const CodecInfo* CodecInfo::match(int codec, const CodecInfo* start=0)
+const CodecInfo* CodecInfo::match(int codec, const CodecInfo* start)
 {
-    vector<CodecInfo>::const_iterator it;
-    if(start==0)
-   it=video_codecs.begin();
-    else
-   it=start;
-    vector<int>::const_iterator iv;
+    std::vector<CodecInfo>::const_iterator it = video_codecs.begin();
+    if (start)
+   it = std::vector<CodecInfo>::const_iterator(start);
+  
+    std::vector<int>::const_iterator iv;
     for(; it!=video_codecs.end(); it++)
     {
-   if(start && (it==start))continue;   
+   if(start && (&(*it)==start))continue;   
    for(iv=it->fourcc_array.begin(); iv!=it->fourcc_array.end(); iv++)
        if(codec==(*iv))
-       return (const CodecInfo*)it;
+       return &(*it);
     }
     return 0;
 }