[empathy] Use framerate range instead of fix range
- From: Sjoerd Simons <sjoerds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Use framerate range instead of fix range
- Date: Mon, 7 Nov 2011 20:08:10 +0000 (UTC)
commit 32aef7685fde0d06b37e381323dd172d41664c75
Author: Nicolas Dufresne <nicolas dufresne collabora com>
Date: Mon Jul 11 19:45:46 2011 -0400
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 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/empathy-video-src.c b/src/empathy-video-src.c
index 1e36254..12d77d8 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]