diff options
author | David Schleef <ds@schleef.org> | 2004-03-06 00:42:20 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2004-03-06 00:42:20 +0000 |
commit | 86db595f563c3b5da4427055f4afc439c12036b5 (patch) | |
tree | 917f010e633963aa567f4c9dd5ba0a6c856a6455 /gst-libs/gst/floatcast | |
parent | 42547f3e85c3b208dd1ca7e06445e6e61c6d4b86 (diff) | |
download | gst-plugins-bad-86db595f563c3b5da4427055f4afc439c12036b5.tar.gz gst-plugins-bad-86db595f563c3b5da4427055f4afc439c12036b5.tar.bz2 gst-plugins-bad-86db595f563c3b5da4427055f4afc439c12036b5.zip |
ext/faad/gstfaad.c: Fix negotiation.
Original commit message from CVS:
* ext/faad/gstfaad.c: (gst_faad_init), (gst_faad_srcgetcaps),
(gst_faad_chain): Fix negotiation.
* ext/librfb/gstrfbsrc.c: (gst_rfbsrc_handle_src_event): Add
key and button events.
* gst-libs/gst/floatcast/floatcast.h: Fix a minor bug in this
dung heap of code.
* gst-libs/gst/gconf/gstreamer-gconf-uninstalled.pc.in: gstgconf
depends on gconf
* gst-libs/gst/gconf/gstreamer-gconf.pc.in: same
* gst-libs/gst/play/play.c: (gst_play_pipeline_setup),
(gst_play_video_fixate), (gst_play_audio_fixate): Add a fixate
function to encourage better negotiation, particularly between
audioconvert and osssink.
* gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_chain):
* gst/qtdemux/qtdemux.c: (qtdemux_parse_trak): Make some debugging
more important.
* gst/typefind/gsttypefindfunctions.c: Fix mistake in flash
typefinding.
* gst/vbidec/vbiscreen.c: Add glib header
* pkgconfig/gstreamer-play.pc.in: Depends on gst-interfaces.
Diffstat (limited to 'gst-libs/gst/floatcast')
-rw-r--r-- | gst-libs/gst/floatcast/floatcast.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/floatcast/floatcast.h b/gst-libs/gst/floatcast/floatcast.h index 99577d91..ae87a43f 100644 --- a/gst-libs/gst/floatcast/floatcast.h +++ b/gst-libs/gst/floatcast/floatcast.h @@ -52,8 +52,8 @@ G_BEGIN_DECLS #else /* use a standard c cast, but do rounding correctly */ - #define gst_cast_float(x) ((x)>=0?(gint)((x)+0.5):(gint)((x)-0.5)) - #define gst_cast_double(x) ((x)>=0?(gint)((x)+0.5):(gint)((x)-0.5)) + #define gst_cast_float(x) ((gint)floor((x)+0.5)) + #define gst_cast_double(x) ((gint)floor((x)+0.5)) #endif |