GStreamer: fpsdisplaysink patchs

Message ID AANLkTikRpbRGf-FOGwO-FKHsvG3V2UbV+YEhJKL0tNsP@mail.gmail.com
State New
Headers show

Commit Message

Benjamin Gaignard March 22, 2011, 8:31 a.m.
Hi,

2 patches upstreamed to GStreamer, see bugs:
https://bugzilla.gnome.org/show_bug.cgi?id=643469
https://bugzilla.gnome.org/show_bug.cgi?id=643471

Benjamin

Patch

From 67bfe79a5c818de7b2c42453d65ba80cf429b5e9 Mon Sep 17 00:00:00 2001
From: benjamin gaignard <benjamin.gaignard@linaro.org>
Date: Mon, 28 Feb 2011 11:51:54 +0100
Subject: [PATCH] fpsdisplay: fix sync property default value

---
 gst/debugutils/fpsdisplaysink.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gst/debugutils/fpsdisplaysink.c b/gst/debugutils/fpsdisplaysink.c
index e3be1d6..5dca63d 100644
--- a/gst/debugutils/fpsdisplaysink.c
+++ b/gst/debugutils/fpsdisplaysink.c
@@ -65,6 +65,8 @@  GST_STATIC_PAD_TEMPLATE ("sink",
 GST_DEBUG_CATEGORY_STATIC (fps_display_sink_debug);
 #define GST_CAT_DEFAULT fps_display_sink_debug
 
+#define DEFAULT_SYNC TRUE
+
 enum
 {
   /* FILL ME */
@@ -116,7 +118,7 @@  fps_display_sink_class_init (GstFPSDisplaySinkClass * klass)
   g_object_class_install_property (gobject_klass, ARG_SYNC,
       g_param_spec_boolean ("sync",
           "Sync", "Sync on the clock (if the internally used sink doesn't "
-          "have this property it will be ignored", TRUE,
+          "have this property it will be ignored", DEFAULT_SYNC,
           G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE));
 
   g_object_class_install_property (gobject_klass, ARG_TEXT_OVERLAY,
@@ -323,7 +325,7 @@  static void
 fps_display_sink_init (GstFPSDisplaySink * self,
     GstFPSDisplaySinkClass * g_class)
 {
-  self->sync = FALSE;
+  self->sync = DEFAULT_SYNC;
   self->signal_measurements = DEFAULT_SIGNAL_FPS_MEASUREMENTS;
   self->use_text_overlay = TRUE;
   self->fps_update_interval = GST_MSECOND * DEFAULT_FPS_UPDATE_INTERVAL_MS;
-- 
1.7.0.4