diff --git a/tests/icles/playbin-text.c b/tests/icles/playbin-text.c index c9e7c90f15..7a603e5b63 100644 --- a/tests/icles/playbin-text.c +++ b/tests/icles/playbin-text.c @@ -83,7 +83,7 @@ bus_message (GstBus * bus, GstMessage * message, App * app) return TRUE; } -static void +static GstFlowReturn have_subtitle (GstElement * appsink, App * app) { GstBuffer *buffer; @@ -117,6 +117,7 @@ have_subtitle (GstElement * appsink, App * app) gst_buffer_unmap (buffer, &map); gst_sample_unref (sample); } + return GST_FLOW_OK; } int @@ -129,7 +130,7 @@ main (int argc, char *argv[]) gst_init (&argc, &argv); if (argc < 2) { - g_print ("usage: %s \n", argv[0]); + g_print ("usage: %s []\n", argv[0]); return -1; } @@ -159,6 +160,9 @@ main (int argc, char *argv[]) /* set to read from appsrc */ g_object_set (app->playbin, "uri", argv[1], NULL); + if (argc > 2) + g_object_set (app->playbin, "suburi", argv[2], NULL); + /* go to playing and wait in a mainloop. */ gst_element_set_state (app->playbin, GST_STATE_PLAYING);