[gnome-media] Better debug for "Unable to find bar for stream" messages
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-media] Better debug for "Unable to find bar for stream" messages
- Date: Wed, 6 May 2009 07:44:20 -0400 (EDT)
commit d8e80adcc8810ed2337ab48c0b5232a19ac3f5ee
Author: Bastien Nocera <hadess hadess net>
Date: Wed May 6 12:43:09 2009 +0100
Better debug for "Unable to find bar for stream" messages
Add the stream name, and the name of the function where the error
occurs to the message.
---
gnome-volume-control/src/gvc-mixer-dialog.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnome-volume-control/src/gvc-mixer-dialog.c b/gnome-volume-control/src/gvc-mixer-dialog.c
index 96e56e9..c953ff3 100644
--- a/gnome-volume-control/src/gvc-mixer-dialog.c
+++ b/gnome-volume-control/src/gvc-mixer-dialog.c
@@ -539,7 +539,8 @@ on_stream_volume_notify (GObject *object,
bar = lookup_bar_for_stream (dialog, stream);
if (bar == NULL) {
- g_warning ("Unable to find bar for stream");
+ g_warning ("Unable to find bar for stream %s in on_stream_volume_notify()",
+ gvc_mixer_stream_get_name (stream));
return;
}
@@ -570,7 +571,8 @@ on_stream_is_muted_notify (GObject *object,
bar = lookup_bar_for_stream (dialog, stream);
if (bar == NULL) {
- g_warning ("Unable to find bar for stream");
+ g_warning ("Unable to find bar for stream %s in on_stream_is_muted_notify()",
+ gvc_mixer_stream_get_name (stream));
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]