From 32aef7685fde0d06b37e381323dd172d41664c75 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Mon, 11 Jul 2011 19:45:46 -0400 Subject: 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. --- src/empathy-video-src.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') 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); -- cgit v1.2.3