+2007-09-17 Jan Schmidt <Jan.Schmidt@sun.com>
+
+ * ext/pango/gsttextoverlay.c: (gst_text_overlay_init),
+ (gst_text_overlay_set_property):
+ * ext/vorbis/vorbisdec.c: (vorbis_handle_data_packet):
+ * gst-libs/gst/audio/gstbaseaudiosink.c:
+ (gst_base_audio_sink_render):
+ * gst-libs/gst/rtp/gstrtcpbuffer.c: (gst_rtcp_ntp_to_unix),
+ (gst_rtcp_unix_to_ntp):
+ * gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_get_type):
+ * gst/playback/gstqueue2.c:
+ * tests/examples/seek/seek.c: (set_scale):
+ Fix a bunch of compile warnings shown with Forte.
+
+ * gst/audiorate/gstaudiorate.c:
+ Always pull in config.h before including any system headers.
+
2007-09-17 Wim Taymans <wim.taymans@gmail.com>
* gst/playback/gstqueue2.c: (update_buffering),
overlay->line_align = DEFAULT_PROP_LINE_ALIGNMENT;
overlay->layout =
pango_layout_new (GST_TEXT_OVERLAY_GET_CLASS (overlay)->pango_context);
- pango_layout_set_alignment (overlay->layout, overlay->line_align);
+ pango_layout_set_alignment (overlay->layout,
+ (PangoAlignment) overlay->line_align);
memset (&overlay->bitmap, 0, sizeof (overlay->bitmap));
overlay->halign = DEFAULT_PROP_HALIGNMENT;
break;
case PROP_LINE_ALIGNMENT:
overlay->line_align = g_value_get_enum (value);
- pango_layout_set_alignment (overlay->layout, overlay->line_align);
+ pango_layout_set_alignment (overlay->layout,
+ (PangoAlignment) overlay->line_align);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
guint sample_count;
GstBuffer *out;
GstFlowReturn result;
- GstClockTime timestamp = -1, nextts;
+ GstClockTime timestamp = GST_CLOCK_TIME_NONE, nextts;
gint size;
if (!vd->initialized)
gint bps;
gint accum;
gint out_samples;
- GstClockTime base_time = -1, latency;
+ GstClockTime base_time = GST_CLOCK_TIME_NONE, latency;
GstClock *clock;
gboolean sync, slaved, align_next;
/* conversion from NTP timestamp (seconds since 1900) to seconds since
* 1970. */
- unixtime = ntptime - (2208988800LL << 32);
+ unixtime = ntptime - (2208988800ULL << 32);
/* conversion to nanoseconds */
unixtime = gst_util_uint64_scale (unixtime, GST_SECOND, (1LL << 32));
ntptime = gst_util_uint64_scale (unixtime, (1LL << 32), GST_SECOND);
/* conversion from UNIX timestamp (seconds since 1970) to NTP (seconds
* since 1900). */
- ntptime += (2208988800LL << 32);
+ ntptime += (2208988800ULL << 32);
return ntptime;
}
GstRTSPMsgType
gst_rtsp_message_get_type (GstRTSPMessage * msg)
{
- g_return_val_if_fail (msg != NULL, GST_RTSP_EINVAL);
+ g_return_val_if_fail (msg != NULL, GST_RTSP_MESSAGE_INVALID);
return msg->type;
}
* Boston, MA 02111-1307, USA.
*/
-#include <stdlib.h>
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+
#include <string.h>
+#include <stdlib.h>
#include <gst/gst.h>
#include <gst/audio/audio.h>
static GstFlowReturn gst_queue_bufferalloc (GstPad * pad, guint64 offset,
guint size, GstCaps * caps, GstBuffer ** buf);
static gboolean gst_queue_acceptcaps (GstPad * pad, GstCaps * caps);
-static gboolean gst_queue_push_one (GstQueue * queue);
+static GstFlowReturn gst_queue_push_one (GstQueue * queue);
static void gst_queue_loop (GstPad * pad);
static gboolean gst_queue_handle_sink_event (GstPad * pad, GstEvent * event);
static void
set_scale (gdouble value)
{
- g_signal_handlers_block_by_func (hscale, start_seek, pipeline);
- g_signal_handlers_block_by_func (hscale, stop_seek, pipeline);
+ g_signal_handlers_block_by_func (hscale, (void *) start_seek,
+ (void *) pipeline);
+ g_signal_handlers_block_by_func (hscale, (void *) stop_seek,
+ (void *) pipeline);
gtk_adjustment_set_value (adjustment, value);
- g_signal_handlers_unblock_by_func (hscale, start_seek, pipeline);
- g_signal_handlers_unblock_by_func (hscale, stop_seek, pipeline);
+ g_signal_handlers_unblock_by_func (hscale, (void *) start_seek,
+ (void *) pipeline);
+ g_signal_handlers_unblock_by_func (hscale, (void *) stop_seek,
+ (void *) pipeline);
gtk_widget_queue_draw (hscale);
}