rygel r780 - trunk/src/rygel



Author: zeeshanak
Date: Wed Apr  1 21:56:19 2009
New Revision: 780
URL: http://svn.gnome.org/viewvc/rygel?rev=780&view=rev

Log:
Just set all the desired caps at the end of the pipeline.

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

Modified: trunk/src/rygel/rygel-mp2ts-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-mp2ts-transcoder.vala	(original)
+++ trunk/src/rygel/rygel-mp2ts-transcoder.vala	Wed Apr  1 21:56:19 2009
@@ -79,13 +79,12 @@
         var bin = new Bin ("video-encoder-bin");
         bin.add_many (videorate, videoscale, convert, encoder);
 
-        var caps = new Caps.simple ("video/x-raw-yuv",
-                                    "framerate", typeof (Fraction), 30, 1);
-        videorate.link_filtered (convert, caps);
-        convert.link (videoscale);
-        caps = new Caps.simple ("video/x-raw-yuv",
+        videorate.link_many (convert, videoscale);
+        var caps = new Caps.simple (
+                                "video/x-raw-yuv",
                                 "width", typeof (int), WIDTH[this.profile],
                                 "height", typeof (int), HEIGHT[this.profile],
+                                "framerate", typeof (Fraction), 30, 1,
                                 "pixel-aspect-ratio", typeof (Fraction), 1, 1);
         videoscale.link_filtered (encoder, caps);
 



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