[rygel] core: Search RTP depayloaders more flexible
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Search RTP depayloaders more flexible
- Date: Mon, 7 Nov 2011 22:14:25 +0000 (UTC)
commit c9092054d4ff87b957bd40f6af6770cbf4f67c07
Author: Jens Georg <mail jensge org>
Date: Sun Nov 6 19:50:10 2011 +0100
core: Search RTP depayloaders more flexible
src/rygel/rygel-gst-utils.vala | 8 +++++++-
src/rygel/rygel-http-response.vala | 1 +
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-gst-utils.vala b/src/rygel/rygel-gst-utils.vala
index 6232baf..2585eb2 100644
--- a/src/rygel/rygel-gst-utils.vala
+++ b/src/rygel/rygel-gst-utils.vala
@@ -105,7 +105,13 @@ internal abstract class Rygel.GstUtils {
// First construct a list of relevant factories
foreach (PluginFeature feature in features) {
var factory = (ElementFactory) feature;
- if (factory.can_sink_caps (caps)) {
+
+ // Skip "rtpdepay" since it's more like a proxy
+ if (factory.get_name () == "rtpdepay") {
+ continue;
+ }
+
+ if (factory.can_sink_any_caps (caps)) {
relevant_factories.append (factory);
}
}
diff --git a/src/rygel/rygel-http-response.vala b/src/rygel/rygel-http-response.vala
index 21ebcbe..1b511b0 100644
--- a/src/rygel/rygel-http-response.vala
+++ b/src/rygel/rygel-http-response.vala
@@ -189,6 +189,7 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
critical (_("Failed to link %s to %s"),
depay.name,
sink.name);
+
this.end (false, KnownStatusCode.NONE);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]