mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
update for probe api changes
This commit is contained in:
parent
931354215e
commit
c48df77320
2 changed files with 5 additions and 7 deletions
|
@ -514,9 +514,9 @@ distribute_running_time (GstElement * element, const GstSegment * segment)
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadProbeReturn
|
static GstPadProbeReturn
|
||||||
dbin_event_probe (GstPad * pad, GstPadProbeType ptype, GstEvent * event,
|
dbin_event_probe (GstPad * pad, GstPadProbeInfo * info, gpointer data)
|
||||||
gpointer data)
|
|
||||||
{
|
{
|
||||||
|
GstEvent *event = GST_PAD_PROBE_INFO_EVENT (info);
|
||||||
GstPulseAudioSink *pbin = GST_PULSE_AUDIO_SINK (data);
|
GstPulseAudioSink *pbin = GST_PULSE_AUDIO_SINK (data);
|
||||||
|
|
||||||
if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) {
|
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");
|
sinkpad = gst_element_get_static_pad (GST_ELEMENT (pbin->psink), "sink");
|
||||||
pbin->event_probe_id =
|
pbin->event_probe_id =
|
||||||
gst_pad_add_probe (sinkpad, GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM,
|
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);
|
gst_object_unref (sinkpad);
|
||||||
sinkpad = NULL;
|
sinkpad = NULL;
|
||||||
|
|
||||||
|
@ -623,8 +623,7 @@ update_eac3_alignment (GstPulseAudioSink * pbin)
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadProbeReturn
|
static GstPadProbeReturn
|
||||||
proxypad_blocked_cb (GstPad * pad, GstPadProbeType ptype, gpointer type_data,
|
proxypad_blocked_cb (GstPad * pad, GstPadProbeInfo * info, gpointer data)
|
||||||
gpointer data)
|
|
||||||
{
|
{
|
||||||
GstPulseAudioSink *pbin = GST_PULSE_AUDIO_SINK (data);
|
GstPulseAudioSink *pbin = GST_PULSE_AUDIO_SINK (data);
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
|
@ -2153,8 +2153,7 @@ gst_rtspsrc_sink_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadProbeReturn
|
static GstPadProbeReturn
|
||||||
pad_blocked (GstPad * pad, GstPadProbeType type, gpointer type_data,
|
pad_blocked (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
|
||||||
gpointer user_data)
|
|
||||||
{
|
{
|
||||||
GstRTSPSrc *src = user_data;
|
GstRTSPSrc *src = user_data;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue