[rygel] gst-launch: Fix video items
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] gst-launch: Fix video items
- Date: Mon, 31 Aug 2015 18:40:40 +0000 (UTC)
commit 5894fdf98122bc4ab6bf601477169429a91a153c
Author: Jens Georg <mail jensge org>
Date: Mon Aug 31 20:40:06 2015 +0200
gst-launch: Fix video items
Signed-off-by: Jens Georg <mail jensge org>
.../gst-launch/rygel-gst-launch-video-item.vala | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gst-launch/rygel-gst-launch-video-item.vala
b/src/plugins/gst-launch/rygel-gst-launch-video-item.vala
index a2a4f75..a6057ec 100644
--- a/src/plugins/gst-launch/rygel-gst-launch-video-item.vala
+++ b/src/plugins/gst-launch/rygel-gst-launch-video-item.vala
@@ -39,5 +39,20 @@ public class Rygel.GstLaunch.VideoItem : Rygel.VideoItem {
this.mime_type = mime_type;
this.add_uri ("gst-launch://" + launch_line);
+
+ // Call the MediaEngine to determine which item representations it can support
+ var media_engine = MediaEngine.get_default ( );
+ media_engine.get_resources_for_item.begin ( this,
+ (obj, res) => {
+ var added_resources = media_engine
+ .get_resources_for_item.end (res);
+ debug ("Adding %d resources to item source %s",
+ added_resources.size, this.get_primary_uri ());
+ foreach (var resrc in added_resources) {
+ debug ("Media-export item media resource %s",
+ resrc.get_name ());
+ }
+ this.get_resource_list ().add_all (added_resources);
+ });
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]