summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2011-11-04 10:15:32 +0100
committerEdward Hervey <edward.hervey@collabora.co.uk>2011-11-04 10:15:32 +0100
commit9c044ac66ec9c76ac8e8254c1be324e5b9f5c41e (patch)
tree718f7dc2fd67fc218bd898f94bd4454d25aa80e0 /tests
parentfa576d7384dcc4158699546657d242e71e8e27b6 (diff)
downloadgst-libav-9c044ac66ec9c76ac8e8254c1be324e5b9f5c41e.tar.gz
tests: Fix for pad probe API change
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/ffdemux_ape.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/check/elements/ffdemux_ape.c b/tests/check/elements/ffdemux_ape.c
index 2b62fc9..ed8c35f 100644
--- a/tests/check/elements/ffdemux_ape.c
+++ b/tests/check/elements/ffdemux_ape.c
@@ -51,8 +51,8 @@ error_cb (GstBus * bus, GstMessage * msg, gpointer user_data)
return GST_BUS_PASS;
}
-static GstProbeReturn
-event_probe (GstPad * pad, GstProbeType type, gpointer type_data,
+static GstPadProbeReturn
+event_probe (GstPad * pad, GstPadProbeType type, gpointer type_data,
gpointer user_data)
{
GstTagList **p_tags = user_data;
@@ -68,7 +68,7 @@ event_probe (GstPad * pad, GstProbeType type, gpointer type_data,
*p_tags = gst_tag_list_copy (event_tags);
}
}
- return GST_PROBE_OK; /* keep the data */
+ return GST_PAD_PROBE_OK; /* keep the data */
}
/* FIXME: push_mode not used currently */
@@ -113,7 +113,7 @@ read_tags_from_file (const gchar * file, gboolean push_mode)
/* we want to make sure there's a tag event coming out of ffdemux_ape
* (ie. the one apedemux generated) */
pad = gst_element_get_static_pad (sink, "sink");
- gst_pad_add_probe (pad, GST_PROBE_TYPE_EVENT, event_probe, &tags, NULL);
+ gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_EVENT, event_probe, &tags, NULL);
gst_object_unref (pad);
state_ret = gst_element_set_state (pipeline, GST_STATE_PAUSED);