playbin2: add some logging for failure case
authorStefan Kost <ensonic@users.sf.net>
Mon, 1 Nov 2010 21:07:12 +0000 (23:07 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 2 Dec 2010 21:04:51 +0000 (23:04 +0200)
gst/playback/gstplaybin2.c

index 12d72eb..75f19ab 100644 (file)
@@ -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;
   }
 }