From 95b259f9c95680b1f47eeee8ce22537bf41d1998 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 1 Nov 2010 23:07:12 +0200 Subject: [PATCH] playbin2: add some logging for failure case --- gst/playback/gstplaybin2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 12d72eb..75f19ab 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -1472,6 +1472,7 @@ gst_play_bin_set_current_video_stream (GstPlayBin * playbin, gint stream) no_channels: { GST_PLAY_BIN_UNLOCK (playbin); + GST_DEBUG_OBJECT (playbin, "can't switch video, we have no channels"); return FALSE; } } @@ -1514,6 +1515,7 @@ gst_play_bin_set_current_audio_stream (GstPlayBin * playbin, gint stream) no_channels: { GST_PLAY_BIN_UNLOCK (playbin); + GST_DEBUG_OBJECT (playbin, "can't switch audio, we have no channels"); return FALSE; } } -- 2.7.4