static void dvb_base_bin_finalize (GObject * object);
static GstPadProbeReturn dvb_base_bin_ts_pad_probe_cb (GstPad * pad,
- GstPadProbeType type, gpointer data, gpointer user_data);
+ GstPadProbeInfo * info, gpointer user_data);
static GstStateChangeReturn dvb_base_bin_change_state (GstElement * element,
GstStateChange transition);
static void dvb_base_bin_handle_message (GstBin * bin, GstMessage * message);
}
static GstPadProbeReturn
-dvb_base_bin_ts_pad_probe_cb (GstPad * pad, GstPadProbeType type,
- gpointer data, gpointer user_data)
+dvb_base_bin_ts_pad_probe_cb (GstPad * pad, GstPadProbeInfo * info,
+ gpointer user_data)
{
DvbBaseBin *dvbbasebin = GST_DVB_BASE_BIN (user_data);
*/
static GstPadProbeReturn
-pad_has_buffer (GstPad * pad, GstPadProbeType type, gpointer type_data,
- gpointer user_data)
+pad_has_buffer (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
{
gboolean *signal_sink = (gboolean *) user_data;
gboolean print_and_restart = FALSE;
}
static GstPadProbeReturn
-camera_src_get_timestamp_probe (GstPad * pad, GstPadProbeType type,
- GstMiniObject * obj, gpointer udata)
+camera_src_get_timestamp_probe (GstPad * pad, GstPadProbeInfo * info,
+ gpointer udata)
{
CaptureTiming *timing;
return GST_PAD_PROBE_REMOVE;
}
-static gboolean
-viewfinder_get_timestamp_probe (GstPad * pad, GstMiniObject * obj,
+static GstPadProbeReturn
+viewfinder_get_timestamp_probe (GstPad * pad, GstPadProbeInfo * info,
gpointer udata)
{
CaptureTiming *timing;
timing = (CaptureTiming *) g_list_first (capture_times)->data;
timing->precapture = gst_util_get_timestamp ();
- gst_pad_remove_probe (pad, viewfinder_probe_id);
-
- return TRUE;
+ return GST_PAD_PROBE_REMOVE;
}
static GstBusSyncReply
viewfinder_probe_id =
gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_BUFFER,
- (GstPadProbeCallback) viewfinder_get_timestamp_probe, NULL,
- NULL);
+ viewfinder_get_timestamp_probe, NULL, NULL);
gst_object_unref (pad);
}
pad = gst_element_get_static_pad (video_source, "imgsrc");
camera_probe_id = gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_BUFFER,
- (GstPadProbeCallback) camera_src_get_timestamp_probe, NULL, NULL);
+ camera_src_get_timestamp_probe, NULL, NULL);
gst_object_unref (pad);
}
}
static GstPadProbeReturn
-demo_player_event_listener (GstPad * pad, GstPadProbeType type,
- GstEvent * event, gpointer data)
+demo_player_event_listener (GstPad * pad, GstPadProbeInfo * info, gpointer data)
{
+ GstEvent *event = GST_PAD_PROBE_INFO_EVENT (info);
DemoPlayer *player = DEMO_PLAYER (data);
DemoPlayerPrivate *priv = DEMO_PLAYER_GET_PRIVATE (player);
LINK_ELEMENTS (resample, asink);
gst_pad_add_probe (gst_element_get_static_pad (asink, "sink"),
- GST_PAD_PROBE_TYPE_EVENT,
- (GstPadProbeCallback) demo_player_event_listener, player, NULL);
+ GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM,
+ demo_player_event_listener, player, NULL);
ghostpad = gst_element_get_static_pad (filter, "sink");
gst_element_add_pad (audioline, gst_ghost_pad_new ("sink", ghostpad));
MAKE_ELEMENT (NULL, priv->scalerate_line, audiosink_name,
"scaling_audio_sink");
gst_pad_add_probe (gst_element_get_static_pad (priv->scalerate_line,
- "sink"), GST_PAD_PROBE_TYPE_EVENT,
- (GstPadProbeCallback) demo_player_event_listener, player, NULL);
+ "sink"), GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM,
+ demo_player_event_listener, player, NULL);
g_object_ref (priv->scaletempo_line);
g_object_ref (priv->scalerate_line);
}