diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2005-05-15 16:30:32 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2005-05-15 16:30:32 +0000 |
commit | 32df418b1e9634b8a4dff101614f9af43a25cce9 (patch) | |
tree | 1a958ad0ec7d4da3ccd6d8951084ac39559d59bb /gst/modplug/libmodplug/sndfile.cpp | |
parent | bb2e13a2f5474e5ffbffddfc6a1683a70531ffb8 (diff) | |
download | gst-plugins-bad-32df418b1e9634b8a4dff101614f9af43a25cce9.tar.gz gst-plugins-bad-32df418b1e9634b8a4dff101614f9af43a25cce9.tar.bz2 gst-plugins-bad-32df418b1e9634b8a4dff101614f9af43a25cce9.zip |
Another batch of gcc-4.0 fixes (#304180).
Original commit message from CVS:
* ext/directfb/directfbvideosink.c:
(gst_directfbvideosink_sink_link):
* ext/libcaca/gstcacasink.c: (gst_cacasink_sinkconnect):
* gst/modplug/libmodplug/sndfile.cpp:
* gst/modplug/libmodplug/sndfile.h:
Another batch of gcc-4.0 fixes (#304180).
Diffstat (limited to 'gst/modplug/libmodplug/sndfile.cpp')
-rw-r--r-- | gst/modplug/libmodplug/sndfile.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/modplug/libmodplug/sndfile.cpp b/gst/modplug/libmodplug/sndfile.cpp index b65a1134..9d04556f 100644 --- a/gst/modplug/libmodplug/sndfile.cpp +++ b/gst/modplug/libmodplug/sndfile.cpp @@ -1175,7 +1175,8 @@ UINT CSoundFile::ReadSample(MODINSTRUMENT *pIns, UINT nFlags, LPCSTR lpMemFile, short int *pSample = (short int *)pIns->pSample; for (UINT j=0; j<len; j+=2) { - *pSample++ = bswapLE16(*pSample); + *pSample = bswapLE16(*pSample); + ++pSample; } } break; @@ -1366,7 +1367,8 @@ UINT CSoundFile::ReadSample(MODINSTRUMENT *pIns, UINT nFlags, LPCSTR lpMemFile, WORD *pSampleW = (WORD *)pIns->pSample; for (UINT j=0; j<len; j+=2) // swaparoni! { - *pSampleW++ = bswapLE16(*pSampleW); + *pSampleW = bswapLE16(*pSampleW); + ++pSampleW; } } break; |