aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-video-src.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2011-07-12 07:45:46 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-11-08 04:07:19 +0800
commit32aef7685fde0d06b37e381323dd172d41664c75 (patch)
tree8609eff2394552bee3a5a9ce68adccbaea63a6a9 /src/empathy-video-src.c
parent6fd0f2618c54d9300cd633c954b69f1d3d6e4197 (diff)
downloadgsoc2013-empathy-32aef7685fde0d06b37e381323dd172d41664c75.tar
gsoc2013-empathy-32aef7685fde0d06b37e381323dd172d41664c75.tar.gz
gsoc2013-empathy-32aef7685fde0d06b37e381323dd172d41664c75.tar.bz2
gsoc2013-empathy-32aef7685fde0d06b37e381323dd172d41664c75.tar.lz
gsoc2013-empathy-32aef7685fde0d06b37e381323dd172d41664c75.tar.xz
gsoc2013-empathy-32aef7685fde0d06b37e381323dd172d41664c75.tar.zst
gsoc2013-empathy-32aef7685fde0d06b37e381323dd172d41664c75.zip
Use framerate range instead of fix range
Using framerate range reduce the chance that changing the framerate breaks the pipline. We also always set an initial range to support src like videotestsrc that does not allow changing framerate dynamically and would default to a "as fast as possible" mode.
Diffstat (limited to 'src/empathy-video-src.c')
-rw-r--r--src/empathy-video-src.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/empathy-video-src.c b/src/empathy-video-src.c
index 1e362547a..12d77d8f9 100644
--- a/src/empathy-video-src.c
+++ b/src/empathy-video-src.c
@@ -143,12 +143,10 @@ empathy_video_src_init (EmpathyGstVideoSrc *obj)
g_message ("Couldn't add \"videomaxrate\" (gst-plugins-bad missing?)");
element = element_back;
}
- else
- {
- gst_caps_set_simple (caps,
- "framerate", GST_TYPE_FRACTION, 15, 1,
- NULL);
- }
+
+ gst_caps_set_simple (caps,
+ "framerate", GST_TYPE_FRACTION_RANGE, 1, 1, 30, 1,
+ NULL);
str = gst_caps_to_string (caps);
DEBUG ("Current video src caps are : %s", str);