rygel r755 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r755 - trunk/src/rygel
- Date: Sat, 28 Mar 2009 00:45:16 +0000 (UTC)
Author: zeeshanak
Date: Sat Mar 28 00:45:16 2009
New Revision: 755
URL: http://svn.gnome.org/viewvc/rygel?rev=755&view=rev
Log:
Re-use const defined already to construct mime_type.
Modified:
trunk/src/rygel/rygel-l16-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:45:16 2009
@@ -34,7 +34,11 @@
private const bool SIGNED = true; // Network byte order
public L16Transcoder () {
- base ("audio/L16;rate=44100;channels=2", "LPCM");
+ var mime_type = "audio/L" + L16Transcoder.WIDTH.to_string () +
+ ";rate=" + L16Transcoder.FREQUENCY.to_string () +
+ ";channels=" + L16Transcoder.CHANNELS.to_string ();
+
+ base (mime_type, "LPCM");
}
public override Element create_source (Element src) throws Error {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]