From 0debb1e9fcb4cae6ad74a1b1a8d4f75f5749eb69 Mon Sep 17 00:00:00 2001 From: Sébastien Moutte Date: Thu, 30 Mar 2006 23:37:16 +0000 Subject: ext\jpeg\smokecodec.c: use of GST_DEBUG instead of DEBUG(a...) for WIN32 Original commit message from CVS: * ext\jpeg\smokecodec.c: use of GST_DEBUG instead of DEBUG(a...) for WIN32 * ext\speex\gstspeexenc.c: (gst_speexenc_set_header_on_caps): move first instruction after all variables declarations * gst\alpha\gstalpha.c: * gst\effectv\gstshagadelic.c: * gst\smpte\paint.c: * gst\videofilter\gstvideobalance.c: define M_PI if it's not defined (it's not defined on WIN32) * gst\cutter\gstcutter.c: (gst_cutter_chain): * gst\id3demux\id3v2frames.c: (parse_relative_volume_adjustment_two): * gst\level\gstlevel.c: (gst_level_set_property), (gst_level_transform_ip): * gst\matroska\matroska-demux.c: (gst_matroska_demux_parse_info), (gst_matroska_demux_video_caps): * gst\matroska\matroska-mux.c: (gst_matroska_mux_start), (gst_matroska_mux_finish): * gst\wavparse\gstwavparse.c: (gst_wavparse_stream_data): use gst_guint64_to_gdouble for conversions * gst\goom\filters.c: (setPixelRGB_): fix a debug which was using undefined variable * gst\level\gstlevel.c: (gst_level_set_caps), (gst_level_transform_ip): * gst\matroska\ebml-read.c: (gst_ebml_read_sint): replace LL suffix with L suffix (LL isn't supported by MSVC6.0) * win32/vs6: add vs6 projects files for most of plugins-good --- ext/jpeg/smokecodec.c | 7 +++++++ ext/speex/gstspeexenc.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/jpeg/smokecodec.c b/ext/jpeg/smokecodec.c index 930aa412..887e5c20 100644 --- a/ext/jpeg/smokecodec.c +++ b/ext/jpeg/smokecodec.c @@ -36,8 +36,15 @@ #include "smokecodec.h" #include "smokeformat.h" +#ifndef WIN32 //#define DEBUG(a...) printf( a ); #define DEBUG(a,...) +#else +#include +#define DEBUG GST_DEBUG +#endif + + struct _SmokeCodecInfo { diff --git a/ext/speex/gstspeexenc.c b/ext/speex/gstspeexenc.c index 429c7c7a..f6d97467 100644 --- a/ext/speex/gstspeexenc.c +++ b/ext/speex/gstspeexenc.c @@ -841,11 +841,13 @@ static GstCaps * gst_speexenc_set_header_on_caps (GstCaps * caps, GstBuffer * buf1, GstBuffer * buf2) { - caps = gst_caps_make_writable (caps); - GstStructure *structure = gst_caps_get_structure (caps, 0); + GstStructure *structure = NULL; GValue array = { 0 }; GValue value = { 0 }; + caps = gst_caps_make_writable (caps); + structure = gst_caps_get_structure (caps, 0); + /* mark buffers */ GST_BUFFER_FLAG_SET (buf1, GST_BUFFER_FLAG_IN_CAPS); GST_BUFFER_FLAG_SET (buf2, GST_BUFFER_FLAG_IN_CAPS); -- cgit