[rygel] external: Remove ExternalPlugin.service_name field
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] external: Remove ExternalPlugin.service_name field
- Date: Tue, 11 Jan 2011 14:14:05 +0000 (UTC)
commit 7418542f6c000b8f63eef65db430aaf12a00ed1a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Jan 11 15:56:58 2011 +0200
external: Remove ExternalPlugin.service_name field
This field was redundant since Plugin.name field was set to the same
value. This also fixes a crash since service_name was being accessed
from Plugin class before it was set.
src/plugins/external/rygel-external-plugin.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-plugin.vala b/src/plugins/external/rygel-external-plugin.vala
index e37edf0..46bd71d 100644
--- a/src/plugins/external/rygel-external-plugin.vala
+++ b/src/plugins/external/rygel-external-plugin.vala
@@ -25,7 +25,6 @@
using FreeDesktop;
public class Rygel.External.Plugin : Rygel.MediaServerPlugin {
- public string service_name;
public string root_object;
// Root container properties
@@ -42,7 +41,6 @@ public class Rygel.External.Plugin : Rygel.MediaServerPlugin {
title,
"Rygel External " + title);
- this.service_name = service_name;
this.child_count = child_count;
this.searchable = searchable;
this.root_object = root_object;
@@ -59,7 +57,7 @@ public class Rygel.External.Plugin : Rygel.MediaServerPlugin {
this.title,
this.child_count,
this.searchable,
- this.service_name,
+ this.name,
this.root_object,
null);
} catch (IOError err) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]