]> git.sesse.net Git - vlc/blob - contrib/src/sidplay2/sidplay2-smartprt.patch
contrib: add --disable-gpl option to bootstrap
[vlc] / contrib / src / sidplay2 / sidplay2-smartprt.patch
1 --- sidplay-2.1.1/libsidplay/include/sidplay/SmartPtr.h 2004-06-14 22:08:04.000000000 +0200
2 +++ sidplay2/libsidplay/include/sidplay/SmartPtr.h      2010-12-28 23:33:07.803027697 +0100
3 @@ -211,16 +211,16 @@
4         {
5                 if ( bufferLen >= 1 )
6                 {
7 -                       pBufCurrent = ( bufBegin = buffer );
8 -                       bufEnd = bufBegin + bufferLen;
9 -                       bufLen = bufferLen;
10 -                       status = true;
11 +                       this->pBufCurrent = ( this->bufBegin = buffer );
12 +                       this->bufEnd = this->bufBegin + bufferLen;
13 +                       this->bufLen = bufferLen;
14 +                       this->status = true;
15                 }
16                 else
17                 {
18 -                       pBufCurrent = bufBegin = bufEnd = 0;
19 -                       bufLen = 0;
20 -                       status = false;
21 +                       this->pBufCurrent = this->bufBegin = this->bufEnd = 0;
22 +                       this->bufLen = 0;
23 +                       this->status = false;
24                 }
25         }
26  };