rygel r694 - trunk/src/rygel



Author: zeeshanak
Date: Sat Mar 21 13:54:46 2009
New Revision: 694
URL: http://svn.gnome.org/viewvc/rygel?rev=694&view=rev

Log:
Give src pad of audio encoder bin a name.

Give src pad of audio encoder bin a name and use that to retreive it.

Modified:
   trunk/src/rygel/rygel-mp2-transcoder.vala

Modified: trunk/src/rygel/rygel-mp2-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-mp2-transcoder.vala	(original)
+++ trunk/src/rygel/rygel-mp2-transcoder.vala	Sat Mar 21 13:54:46 2009
@@ -28,6 +28,8 @@
    private const string AUDIO_CONVERT = "audioconvert";
    private const string AUDIO_ENCODER = "twolame";
 
+   private const string AUDIO_SRC_PAD = "audio-src-pad";
+
    private dynamic Element audio_enc;
 
    public MP2Transcoder (Element src) throws Error {
@@ -42,7 +44,7 @@
         this.add_many (src, decodebin);
         src.link (decodebin);
 
-        var src_pad = this.audio_enc.get_static_pad ("src");
+        var src_pad = this.audio_enc.get_static_pad (AUDIO_SRC_PAD);
         var ghost = new GhostPad (null, src_pad);
         this.add_pad (ghost);
 
@@ -95,7 +97,7 @@
        bin.add_pad (ghost);
 
        pad = encoder.get_static_pad ("src");
-       ghost = new GhostPad (null, pad);
+       ghost = new GhostPad (AUDIO_SRC_PAD, pad);
        bin.add_pad (ghost);
 
        return bin;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]