summaryrefslogtreecommitdiffstats
path: root/gst/modplug/libmodplug/load_it.cpp
diff options
context:
space:
mode:
authorMichael Smith <msmith@xiph.org>2008-07-24 00:32:37 +0000
committerMichael Smith <msmith@xiph.org>2008-07-24 00:32:37 +0000
commitcbc867455fc84c1d7abc3f1b5924c1bb17140f9e (patch)
tree3c24086d351efd5acce5d39b27ee6879f2c082d2 /gst/modplug/libmodplug/load_it.cpp
parent8af2be1a1edb37769801298fd155ddcf84772b85 (diff)
downloadgst-plugins-bad-cbc867455fc84c1d7abc3f1b5924c1bb17140f9e.tar.gz
gst-plugins-bad-cbc867455fc84c1d7abc3f1b5924c1bb17140f9e.tar.bz2
gst-plugins-bad-cbc867455fc84c1d7abc3f1b5924c1bb17140f9e.zip
gst/festival/gstfestival.c: Guard unistd.h with HAVE_UNISTD_H
Original commit message from CVS: * gst/festival/gstfestival.c: Guard unistd.h with HAVE_UNISTD_H * gst/modplug/libmodplug/load_it.cpp: * gst/modplug/libmodplug/sndfile.cpp: * gst/modplug/libmodplug/sndfile.h: * gst/modplug/libmodplug/stdafx.h: Support for compiling with MSVC: use _MSC_VER for detecting MSVC instead of MSC_VER. Make CanPackSamples take the type it's passed. Change scope of a variable in load_it.cpp to MSVC's scoping rules. * gst/sdp/gstsdpdemux.c: Guard unistd.h with HAVE_UNISTD_H Fixes #544457.
Diffstat (limited to 'gst/modplug/libmodplug/load_it.cpp')
-rw-r--r--gst/modplug/libmodplug/load_it.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/modplug/libmodplug/load_it.cpp b/gst/modplug/libmodplug/load_it.cpp
index d6222e92..0dac75d6 100644
--- a/gst/modplug/libmodplug/load_it.cpp
+++ b/gst/modplug/libmodplug/load_it.cpp
@@ -869,7 +869,8 @@ BOOL CSoundFile::SaveIT(LPCSTR lpszFileName, UINT nPacking)
{
MODCOMMAND *pzc = Patterns[npat];
UINT nz = PatternSize[npat] * m_nChannels;
- for (UINT iz=0; iz<nz; iz++)
+ INT iz;
+ for (iz=0; iz<nz; iz++)
{
if ((pzc[iz].note) || (pzc[iz].instr)
|| (pzc[iz].volcmd) || (pzc[iz].command)) break;