[rygel] core: Override resource resolution for AVC
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Override resource resolution for AVC
- Date: Sun, 11 Dec 2011 17:00:42 +0000 (UTC)
commit 26d372f790503147d181fa6a2915300eee785227
Author: Jens Georg <mail jensge org>
Date: Fri Dec 9 12:47:50 2011 +0100
core: Override resource resolution for AVC
src/rygel/rygel-avc-transcoder.vala | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
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;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]