[rygel] core: Request pad from encoder if not available



commit 57da2312bd1fe3ad347f26fb4f43a8036da1263d
Author: Luis de Bethencourt <luis debethencourt com>
Date:   Mon Mar 14 18:43:23 2011 +0100

    core: Request pad from encoder if not available
    
    Use the encodebin's action signal to request pad from it if not already
    available.

 src/rygel/rygel-transcoder.vala |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-transcoder.vala b/src/rygel/rygel-transcoder.vala
index cade284..121403b 100644
--- a/src/rygel/rygel-transcoder.vala
+++ b/src/rygel/rygel-transcoder.vala
@@ -165,6 +165,13 @@ internal abstract class Rygel.Transcoder : GLib.Object {
         Gst.Pad encoder_pad = null;
         encoder_pad = encoder.get_compatible_pad (new_pad, null);
         if (encoder_pad == null) {
+            Signal.emit_by_name (encoder,
+                                 "request-pad",
+                                 new_pad.get_caps (),
+                                 out encoder_pad);
+        }
+
+        if (encoder_pad == null) {
             debug ("No compatible encodebin pad found for pad '%s', ignoring..",
                    new_pad.name);
 



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