From c48df77320a0593e7f7ad808c4b8268faa585649 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 8 Nov 2011 11:18:06 +0100 Subject: [PATCH] update for probe api changes --- ext/pulse/pulseaudiosink.c | 9 ++++----- gst/rtsp/gstrtspsrc.c | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ext/pulse/pulseaudiosink.c b/ext/pulse/pulseaudiosink.c index 9ae33c965c..b1db63c2de 100644 --- a/ext/pulse/pulseaudiosink.c +++ b/ext/pulse/pulseaudiosink.c @@ -514,9 +514,9 @@ distribute_running_time (GstElement * element, const GstSegment * segment) } static GstPadProbeReturn -dbin_event_probe (GstPad * pad, GstPadProbeType ptype, GstEvent * event, - gpointer data) +dbin_event_probe (GstPad * pad, GstPadProbeInfo * info, gpointer data) { + GstEvent *event = GST_PAD_PROBE_INFO_EVENT (info); GstPulseAudioSink *pbin = GST_PULSE_AUDIO_SINK (data); if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) { @@ -583,7 +583,7 @@ gst_pulse_audio_sink_add_dbin (GstPulseAudioSink * pbin) sinkpad = gst_element_get_static_pad (GST_ELEMENT (pbin->psink), "sink"); pbin->event_probe_id = gst_pad_add_probe (sinkpad, GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM, - (GstPadProbeCallback) dbin_event_probe, gst_object_ref (pbin), NULL); + dbin_event_probe, gst_object_ref (pbin), NULL); gst_object_unref (sinkpad); sinkpad = NULL; @@ -623,8 +623,7 @@ update_eac3_alignment (GstPulseAudioSink * pbin) } static GstPadProbeReturn -proxypad_blocked_cb (GstPad * pad, GstPadProbeType ptype, gpointer type_data, - gpointer data) +proxypad_blocked_cb (GstPad * pad, GstPadProbeInfo * info, gpointer data) { GstPulseAudioSink *pbin = GST_PULSE_AUDIO_SINK (data); GstCaps *caps; diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 0e57f910b7..37f14566cb 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -2153,8 +2153,7 @@ gst_rtspsrc_sink_chain (GstPad * pad, GstBuffer * buffer) } static GstPadProbeReturn -pad_blocked (GstPad * pad, GstPadProbeType type, gpointer type_data, - gpointer user_data) +pad_blocked (GstPad * pad, GstPadProbeInfo * info, gpointer user_data) { GstRTSPSrc *src = user_data;