summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2011-07-21 22:53:01 +0200
committerJens Georg <mail@jensge.org>2011-07-21 22:53:01 +0200
commit191396b10a1219f67064664f7a01e9d56d0c6b50 (patch)
treecd92ce9b0271d196ceeb86169e765b18d094f392 /src
parentdeab2b4b4a70942ebb44ca66001708680ef712de (diff)
downloadrygel-191396b10a1219f67064664f7a01e9d56d0c6b50.tar.gz
core: Fix MPEG_TS_HD_NA_ISO frame-rate
Diffstat (limited to 'src')
-rw-r--r--src/rygel/rygel-mp2ts-transcoder.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rygel/rygel-mp2ts-transcoder.vala b/src/rygel/rygel-mp2ts-transcoder.vala
index 7148911d..8cf7864e 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]);