[gnome-media] Better debug for "Unable to find stream for bar"
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-media] Better debug for "Unable to find stream for bar"
- Date: Fri, 17 Jul 2009 11:51:15 +0000 (UTC)
commit 60a1012ff851931f9352ef5fbabca22ed6172311
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 17 12:50:32 2009 +0100
Better debug for "Unable to find stream for bar"
When we can't find the appropriate stream for a bar, print
out the bar's name, eases debugging.
gnome-volume-control/src/gvc-mixer-dialog.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnome-volume-control/src/gvc-mixer-dialog.c b/gnome-volume-control/src/gvc-mixer-dialog.c
index 124ac96..909c4ea 100644
--- a/gnome-volume-control/src/gvc-mixer-dialog.c
+++ b/gnome-volume-control/src/gvc-mixer-dialog.c
@@ -555,7 +555,10 @@ on_bar_is_muted_notify (GObject *object,
if (stream != NULL) {
gvc_mixer_stream_change_is_muted (stream, is_muted);
} else {
- g_warning ("Unable to find stream for bar");
+ char *name;
+ g_object_get (object, "name", &name, NULL);
+ g_warning ("Unable to find stream for bar '%s'", name);
+ g_free (name);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]