File wxcam-fix_no_return_in_nonvoid_function.patch of Package wxcam

21
 
1
--- wxcam-1.1/src/device.cpp.bak    2012-03-07 20:59:19.774820103 +0100
2
+++ wxcam-1.1/src/device.cpp    2012-03-07 21:10:10.196003098 +0100
3
@@ -577,6 +577,7 @@ bool Device::getResolutionList(wxArraySt
4
             resw = resh * 16 / (float)9;
5
         }
6
     }
7
+return true;
8
 }
9
 
10
 bool Device::getGain( int *agc ) /* VIDIOCPWCGAGC*/ 
11
--- wxcam-1.1/src/audio.cpp.bak 2012-03-07 20:59:06.161858133 +0100
12
+++ wxcam-1.1/src/audio.cpp 2012-03-07 21:04:34.971939575 +0100
13
@@ -140,6 +140,7 @@ void* Audio::Entry()
14
     snd_pcm_drain(handle);
15
     snd_pcm_close(handle);
16
     free(buffer);
17
+    return 0;
18
 }
19
 
20
 std::vector<std::string> Audio::getAudioFrames()
21