[gst-cvs] gst-plugins-base: icles: Only accept plain subtitles in the playbin-text icles test
Sebastian Dröge
slomo at kemper.freedesktop.org
Thu Jun 10 04:08:43 PDT 2010
Module: gst-plugins-base
Branch: master
Commit: ac0f387addf4df7f75a74b54040c952fd4d45333
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=ac0f387addf4df7f75a74b54040c952fd4d45333
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Thu Jun 10 08:46:50 2010 +0200
icles: Only accept plain subtitles in the playbin-text icles test
---
tests/icles/playbin-text.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/icles/playbin-text.c b/tests/icles/playbin-text.c
index 33f733d..8fc3107 100644
--- a/tests/icles/playbin-text.c
+++ b/tests/icles/playbin-text.c
@@ -126,6 +126,7 @@ main (int argc, char *argv[])
{
App *app = &s_app;
GstBus *bus;
+ GstCaps *subcaps;
gst_init (&argc, &argv);
@@ -146,6 +147,9 @@ main (int argc, char *argv[])
g_object_set (G_OBJECT (app->textsink), "ts-offset", 0 * GST_SECOND, NULL);
g_signal_connect (app->textsink, "new-buffer", G_CALLBACK (have_subtitle),
app);
+ subcaps = gst_caps_from_string ("text/x-pango-markup; text/plain");
+ g_object_set (G_OBJECT (app->textsink), "caps", subcaps, NULL);
+ gst_caps_unref (subcaps);
g_object_set (G_OBJECT (app->playbin), "text-sink", app->textsink, NULL);
More information about the Gstreamer-commits
mailing list