gnome-media r4069 - in trunk/gnome-volume-control: . src
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-media r4069 - in trunk/gnome-volume-control: . src
- Date: Wed, 19 Nov 2008 21:12:13 +0000 (UTC)
Author: mccann
Date: Wed Nov 19 21:12:12 2008
New Revision: 4069
URL: http://svn.gnome.org/viewvc/gnome-media?rev=4069&view=rev
Log:
2008-11-19 William Jon McCann <jmccann redhat com>
* src/gvc-mixer-dialog.c (on_stream_volume_notify),
(on_stream_is_muted_notify):
Fix crash when can't find a bar for stream.
Modified:
trunk/gnome-volume-control/ChangeLog
trunk/gnome-volume-control/src/gvc-mixer-dialog.c
Modified: trunk/gnome-volume-control/src/gvc-mixer-dialog.c
==============================================================================
--- trunk/gnome-volume-control/src/gvc-mixer-dialog.c (original)
+++ trunk/gnome-volume-control/src/gvc-mixer-dialog.c Wed Nov 19 21:12:12 2008
@@ -324,6 +324,12 @@
stream = GVC_MIXER_STREAM (object);
bar = lookup_bar_for_stream (dialog, stream);
+
+ if (bar == NULL) {
+ g_warning ("Unable to find bar for stream");
+ return;
+ }
+
adj = GTK_ADJUSTMENT (gvc_channel_bar_get_adjustment (GVC_CHANNEL_BAR (bar)));
g_signal_handlers_block_by_func (adj,
@@ -349,6 +355,12 @@
stream = GVC_MIXER_STREAM (object);
bar = lookup_bar_for_stream (dialog, stream);
+
+ if (bar == NULL) {
+ g_warning ("Unable to find bar for stream");
+ return;
+ }
+
is_muted = gvc_mixer_stream_get_is_muted (stream);
gvc_channel_bar_set_is_muted (GVC_CHANNEL_BAR (bar),
is_muted);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]