diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-07-17 19:45:42 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-07-17 19:45:42 +0100 |
commit | 11080b7a1f9bec57fab579e26c00e2b02bdf841d (patch) | |
tree | d36dc02dfda11bdde28177d1f3714fea4d097f49 | |
parent | e0b11462ef6d89a8690568d1e6757d1460254a64 (diff) |
insanity-fake-appsink: buffer -> sample
-rw-r--r-- | tests/insanity-fake-appsink.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/insanity-fake-appsink.c b/tests/insanity-fake-appsink.c index 0861388..8657ec8 100644 --- a/tests/insanity-fake-appsink.c +++ b/tests/insanity-fake-appsink.c @@ -42,19 +42,17 @@ struct _App static void on_new_buffer (GstElement * appsink, gpointer userdata) { - - GstBuffer *buffer = NULL; + GstSample *sample = NULL; App *app = NULL; app = (App *) g_object_get_qdata ((GObject *) appsink, g_quark_from_static_string ("app")); - g_signal_emit_by_name (appsink, "pull-buffer", &buffer); - if (buffer) { - gst_buffer_unref (buffer); + g_signal_emit_by_name (appsink, "pull-sample", &sample); + if (sample) { app->bufcount++; + gst_sample_unref (sample); } - } static GstPadProbeReturn @@ -121,7 +119,7 @@ insanity_fake_appsink_new (const gchar * name, InsanityTest * test) appsink = gst_element_factory_make ("appsink", name); g_object_set (G_OBJECT (appsink), "emit-signals", TRUE, "sync", FALSE, NULL); - g_signal_connect (appsink, "new-buffer", G_CALLBACK (on_new_buffer), NULL); + g_signal_connect (appsink, "new-sample", G_CALLBACK (on_new_buffer), NULL); app = g_new0 (App, 1); app->bufcount = 0; |