gst/level/gstlevel.c: use G_GINT64_CONSTANT for INT64 constants
authorSébastien Moutte <sebastien@moutte.net>
Sun, 9 Apr 2006 17:31:37 +0000 (17:31 +0000)
committerSébastien Moutte <sebastien@moutte.net>
Sun, 9 Apr 2006 17:31:37 +0000 (17:31 +0000)
Original commit message from CVS:
* gst/level/gstlevel.c: (gst_level_set_caps),(gst_level_transform_ip):
use G_GINT64_CONSTANT for INT64 constants
* gst/videofilter/gstvideobalance.c:
define rint for WIN32 #define rint(x) (floor((x)+0.5))
* win32/vs6/libgstavi.dsp:
add missing libraries for the link and remove avimux.c from
the project as it isn't ported to 0.10 yet

ChangeLog
gst/level/gstlevel.c
gst/videofilter/gstvideobalance.c
win32/vs6/libgstavi.dsp

index 5e068b4..37e4cfb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-04-09  Sebastien Moutte  <sebastien@moutte.net>
+
+       * gst/level/gstlevel.c: (gst_level_set_caps),(gst_level_transform_ip):
+         use G_GINT64_CONSTANT for INT64 constants
+       * gst/videofilter/gstvideobalance.c:
+         define rint for WIN32 #define rint(x) (floor((x)+0.5))
+       * win32/vs6/libgstavi.dsp:
+        add missing libraries for the link and remove avimux.c from
+        the project as it isn't ported to 0.10 yet
+       
 2006-04-09  Tim-Philipp Müller  <tim at centricular dot net>
 
        * gst/matroska/ebml-read.c: (gst_ebml_read_sint):
index d20a846..a9c6ffb 100644 (file)
@@ -322,7 +322,7 @@ gst_level_set_caps (GstBaseTransform * trans, GstCaps * in, GstCaps * out)
   for (i = 0; i < filter->channels; ++i) {
     filter->CS[i] = filter->peak[i] = filter->last_peak[i] =
         filter->decay_peak[i] = filter->decay_peak_base[i] = 0.0;
-    filter->decay_peak_age[i] = 0L;
+    filter->decay_peak_age[i] = G_GINT64_CONSTANT (0);
   }
 
   return TRUE;
@@ -509,7 +509,7 @@ gst_level_transform_ip (GstBaseTransform * trans, GstBuffer * in)
       GST_LOG_OBJECT (filter, "new peak, %f", filter->peak[i]);
       filter->decay_peak[i] = filter->peak[i];
       filter->decay_peak_base[i] = filter->peak[i];
-      filter->decay_peak_age[i] = 0L;
+      filter->decay_peak_age[i] = G_GINT64_CONSTANT (0);
     }
   }
 
index cd8ba43..b7972bf 100644 (file)
 #define M_PI  3.14159265358979323846
 #endif
 
+#ifdef WIN32
+#define rint(x) (floor((x)+0.5))
+#endif
+
 static GstElementDetails video_balance_details =
 GST_ELEMENT_DETAILS ("Video balance",
     "Filter/Effect/Video",
index 902351f..36ac93b 100644 (file)
@@ -54,7 +54,8 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 libgstreamer-0.10.lib libgstbase-0.10.lib glib-2.0.lib gobject-2.0.lib /nologo /dll /machine:I386 /libpath:"../../../gstreamer/win32/vs6/release" /libpath:"./release"
+# ADD LINK32 libgstriff-0.10.lib libgstreamer-0.10.lib libgstbase-0.10.lib glib-2.0.lib gobject-2.0.lib /nologo /dll /machine:I386 /libpath:"../../../gstreamer/win32/vs6/release" /libpath:"./release" /libpath:"../../../gst-plugins-base/win32/vs6/release"
+# SUBTRACT LINK32 /incremental:yes
 # Begin Special Build Tool
 TargetPath=.\Release\libgstavi.dll
 SOURCE="$(InputPath)"
@@ -86,7 +87,7 @@ BSC32=bscmake.exe
 # ADD BSC32 /nologo
 LINK32=link.exe
 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 libgstreamer-0.10.lib libgstbase-0.10.lib glib-2.0D.lib gobject-2.0D.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /libpath:"../../../gstreamer/win32/vs6/debug" /libpath:"./debug"
+# ADD LINK32 libgstriff-0.10.lib libgstreamer-0.10.lib libgstbase-0.10.lib glib-2.0D.lib gobject-2.0D.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /libpath:"../../../gstreamer/win32/vs6/debug" /libpath:"./debug" /libpath:"../../../gst-plugins-base/win32/vs6/debug"
 # Begin Special Build Tool
 TargetPath=.\Debug\libgstavi.dll
 SOURCE="$(InputPath)"
@@ -110,10 +111,6 @@ SOURCE=..\..\gst\avi\gstavi.c
 
 SOURCE=..\..\gst\avi\gstavidemux.c
 # End Source File
-# Begin Source File
-
-SOURCE=..\..\gst\avi\gstavimux.c
-# End Source File
 # End Group
 # Begin Group "Header Files"
 
@@ -126,10 +123,6 @@ SOURCE="..\..\gst\avi\avi-ids.h"
 
 SOURCE=..\..\gst\avi\gstavidemux.h
 # End Source File
-# Begin Source File
-
-SOURCE=..\..\gst\avi\gstavimux.h
-# End Source File
 # End Group
 # Begin Group "Resource Files"