From 26d372f790503147d181fa6a2915300eee785227 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Fri, 9 Dec 2011 12:47:50 +0100 Subject: [PATCH] core: Override resource resolution for AVC --- src/rygel/rygel-avc-transcoder.vala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/rygel/rygel-avc-transcoder.vala b/src/rygel/rygel-avc-transcoder.vala index ce41d7e..d2651df 100644 --- a/src/rygel/rygel-avc-transcoder.vala +++ b/src/rygel/rygel-avc-transcoder.vala @@ -47,4 +47,19 @@ internal class Rygel.AVCTranscoder : Rygel.VideoTranscoder { VIDEO_CAPS, RESTRICTIONS); } + + public override DIDLLiteResource? add_resource (DIDLLiteItem didl_item, + MediaItem item, + TranscodeManager manager) + throws Error { + var resource = base.add_resource (didl_item, item, manager); + if (resource == null) { + return null; + } + + resource.width = 352; + resource.height = 288; + + return resource; + } } -- 2.7.4