From 153e07e12595113fd4551d35c4c1439e55212cfd Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 20 Mar 2009 16:13:06 +0100 Subject: [PATCH] seek: Add some more debug Add some more info about the selected streams. --- tests/examples/seek/seek.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index cf3d353d9d..2eddc151c1 100644 --- a/tests/examples/seek/seek.c +++ b/tests/examples/seek/seek.c @@ -1798,22 +1798,34 @@ update_streams (GstPipeline * pipeline) static void video_combo_cb (GtkComboBox * combo, GstPipeline * pipeline) { - g_object_set (pipeline, "current-video", gtk_combo_box_get_active (combo), - NULL); + gint active; + + active = gtk_combo_box_get_active (combo); + + g_print ("setting current video track %d\n", active); + g_object_set (pipeline, "current-video", active, NULL); } static void audio_combo_cb (GtkComboBox * combo, GstPipeline * pipeline) { - g_object_set (pipeline, "current-audio", gtk_combo_box_get_active (combo), - NULL); + gint active; + + active = gtk_combo_box_get_active (combo); + + g_print ("setting current audio track %d\n", active); + g_object_set (pipeline, "current-audio", active, NULL); } static void text_combo_cb (GtkComboBox * combo, GstPipeline * pipeline) { - g_object_set (pipeline, "current-text", gtk_combo_box_get_active (combo), - NULL); + gint active; + + active = gtk_combo_box_get_active (combo); + + g_print ("setting current text track %d\n", active); + g_object_set (pipeline, "current-text", active, NULL); } static gboolean