rygel r742 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r742 - trunk/src/rygel
- Date: Sat, 28 Mar 2009 00:44:07 +0000 (UTC)
Author: zeeshanak
Date: Sat Mar 28 00:44:07 2009
New Revision: 742
URL: http://svn.gnome.org/viewvc/rygel?rev=742&view=rev
Log:
can_handle() can now also move to base Transcoder class.
Modified:
trunk/src/rygel/rygel-l16-transcoder.vala
trunk/src/rygel/rygel-mp2ts-transcoder.vala
trunk/src/rygel/rygel-mp3-transcoder.vala
trunk/src/rygel/rygel-transcoder.vala
Modified: trunk/src/rygel/rygel-l16-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-l16-transcoder.vala (original)
+++ trunk/src/rygel/rygel-l16-transcoder.vala Sat Mar 28 00:44:07 2009
@@ -65,10 +65,6 @@
resources.add (res);
}
-
- internal override bool can_handle (string mime_type) {
- return mime_type == this.mime_type;
- }
}
private class Rygel.L16TranscoderBin : Rygel.TranscoderBin {
Modified: trunk/src/rygel/rygel-mp2ts-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-mp2ts-transcoder.vala (original)
+++ trunk/src/rygel/rygel-mp2ts-transcoder.vala Sat Mar 28 00:44:07 2009
@@ -56,10 +56,6 @@
resources.add (res);
}
-
- internal override bool can_handle (string mime_type) {
- return mime_type == this.mime_type;
- }
}
private class Rygel.MP2TSTranscoderBin : Rygel.TranscoderBin {
Modified: trunk/src/rygel/rygel-mp3-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-mp3-transcoder.vala (original)
+++ trunk/src/rygel/rygel-mp3-transcoder.vala Sat Mar 28 00:44:07 2009
@@ -63,10 +63,6 @@
this.mime_type,
this.dlna_profile));
}
-
- public override bool can_handle (string mime_type) {
- return mime_type == this.mime_type;
- }
}
private class Rygel.MP3TranscoderBin : Rygel.TranscoderBin {
Modified: trunk/src/rygel/rygel-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-transcoder.vala (original)
+++ trunk/src/rygel/rygel-transcoder.vala Sat Mar 28 00:44:07 2009
@@ -41,7 +41,9 @@
TranscodeManager manager)
throws Error;
- public abstract bool can_handle (string mime_type);
+ public bool can_handle (string mime_type) {
+ return mime_type == this.mime_type;
+ }
protected bool mime_type_is_a (string mime_type1,
string mime_type2) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]