[rygel] core: Fix MPEG_TS_HD_NA_ISO frame-rate
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Fix MPEG_TS_HD_NA_ISO frame-rate
- Date: Thu, 21 Jul 2011 20:54:32 +0000 (UTC)
commit 191396b10a1219f67064664f7a01e9d56d0c6b50
Author: Jens Georg <mail jensge org>
Date: Thu Jul 21 22:53:01 2011 +0200
core: Fix MPEG_TS_HD_NA_ISO frame-rate
src/rygel/rygel-mp2ts-transcoder.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-mp2ts-transcoder.vala b/src/rygel/rygel-mp2ts-transcoder.vala
index 7148911..8cf7864 100644
--- a/src/rygel/rygel-mp2ts-transcoder.vala
+++ b/src/rygel/rygel-mp2ts-transcoder.vala
@@ -93,13 +93,15 @@ internal class Rygel.MP2TSTranscoder : Rygel.Transcoder {
var cont_format = Caps.from_string ("video/mpegts," +
"systemstream=true," +
"packetsize=188");
+ var framerate = "framerate=(fraction)%d/1".printf
+ (FRAME_RATE[this.profile]);
var video_format = Caps.from_string ("video/mpeg," +
"mpegversion=2," +
"systemstream=false," +
- "framerate=(fraction)25/1");
+ framerate);
var restriction = "video/x-raw-yuv," +
- "framerate=(fraction)25/1," +
+ framerate + "," +
"width=%d,".printf (HEIGHT[this.profile]) +
"height=%d".printf (WIDTH[this.profile]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]