rygel r382 - trunk/src/plugins/dvb
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r382 - trunk/src/plugins/dvb
- Date: Thu, 25 Dec 2008 12:00:57 +0000 (UTC)
Author: zeeshanak
Date: Thu Dec 25 12:00:57 2008
New Revision: 382
URL: http://svn.gnome.org/viewvc/rygel?rev=382&view=rev
Log:
Catch the error from DVBChannel creation method.
Modified:
trunk/src/plugins/dvb/rygel-dvb-channel-group.vala
Modified: trunk/src/plugins/dvb/rygel-dvb-channel-group.vala
==============================================================================
--- trunk/src/plugins/dvb/rygel-dvb-channel-group.vala (original)
+++ trunk/src/plugins/dvb/rygel-dvb-channel-group.vala Thu Dec 25 12:00:57 2008
@@ -105,11 +105,16 @@
foreach (uint channel_id in channel_ids) {
// Create Channels
- var channel = new DVBChannel (channel_id,
- this.id,
- channel_list,
- streamer);
- this.channels.set (channel.id, channel);
+ try {
+ var channel = new DVBChannel (channel_id,
+ this.id,
+ channel_list,
+ streamer);
+ this.channels.set (channel.id, channel);
+ } catch (GLib.Error error) {
+ critical ("Failed to create DVB Channel object: %s",
+ error.message);
+ }
}
this.child_count = this.channels.size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]