+2008-10-10 Edward Hervey <edward.hervey@collabora.co.uk>
+
+ * tests/check/gst/gstutils.c: (probe_do_nothing), (data_probe),
+ (buffer_probe), (event_probe), (GST_START_TEST):
+ We now see 3 events go through our pad, since basesink now sends
+ upstream latency events.
+
2008-10-08 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/gstpipeline.c: (gst_pipeline_change_state):
static gboolean
probe_do_nothing (GstPad * pad, GstMiniObject * obj, gpointer data)
{
+ GST_DEBUG_OBJECT (pad, "is buffer:%d", GST_IS_BUFFER (obj));
return TRUE;
}
data_probe (GstPad * pad, GstMiniObject * obj, gpointer data)
{
n_data_probes++;
- GST_DEBUG ("data probe %d", n_data_probes);
+ GST_DEBUG_OBJECT (pad, "data probe %d", n_data_probes);
g_assert (GST_IS_MINI_OBJECT (obj));
g_assert (data == SPECIAL_POINTER (0));
return TRUE;
buffer_probe (GstPad * pad, GstBuffer * obj, gpointer data)
{
n_buffer_probes++;
- GST_DEBUG ("buffer probe %d", n_buffer_probes);
+ GST_DEBUG_OBJECT (pad, "buffer probe %d", n_buffer_probes);
g_assert (GST_IS_BUFFER (obj));
g_assert (data == SPECIAL_POINTER (1));
return TRUE;
event_probe (GstPad * pad, GstEvent * obj, gpointer data)
{
n_event_probes++;
- GST_DEBUG ("event probe %d", n_event_probes);
+ GST_DEBUG_OBJECT (pad, "event probe %d [%s]",
+ n_event_probes, GST_EVENT_TYPE_NAME (obj));
g_assert (GST_IS_EVENT (obj));
g_assert (data == SPECIAL_POINTER (2));
return TRUE;
gst_object_unref (bus);
g_assert (n_buffer_probes == 10); /* one for every buffer */
- g_assert (n_event_probes == 2); /* new segment and eos */
- g_assert (n_data_probes == 12); /* duh */
+ g_assert (n_event_probes == 3); /* new segment, latency and eos */
+ g_assert (n_data_probes == 13); /* duh */
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (pipeline);
/* make sure nothing was sent in addition to the above when shutting down */
g_assert (n_buffer_probes == 10); /* one for every buffer */
- g_assert (n_event_probes == 2); /* new segment and eos */
- g_assert (n_data_probes == 12); /* duh */
+ g_assert (n_event_probes == 3); /* new segment, latency and eos */
+ g_assert (n_data_probes == 13); /* duh */
} GST_END_TEST;
static int n_data_probes_once = 0;