From 2028980f819155b68ed662ccad5e6ea754fa7d68 Mon Sep 17 00:00:00 2001
From: Vishal Raj <vishal.raj@linaro.org>
Date: Tue, 1 Mar 2011 13:00:57 -0500
Subject: [PATCH] added dropped and rendered frames data in fps-measurement signal
---
gst/debugutils/debugutils-marshal.list | 2 +-
gst/debugutils/fpsdisplaysink.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
@@ -1,2 +1,2 @@
-VOID:DOUBLE,DOUBLE,DOUBLE
+VOID:DOUBLE,DOUBLE,DOUBLE,UINT64,UINT64
@@ -166,8 +166,8 @@ fps_display_sink_class_init (GstFPSDisplaySinkClass * klass)
fpsdisplaysink_signals[SIGNAL_FPS_MEASUREMENTS] =
g_signal_new ("fps-measurements", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
- __gst_debugutils_marshal_VOID__DOUBLE_DOUBLE_DOUBLE,
- G_TYPE_NONE, 3, G_TYPE_DOUBLE, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
+ __gst_debugutils_marshal_VOID__DOUBLE_DOUBLE_DOUBLE_UINT64_UINT64,
+ G_TYPE_NONE, 5, G_TYPE_DOUBLE, G_TYPE_DOUBLE, G_TYPE_DOUBLE, G_TYPE_UINT64, G_TYPE_UINT64);
gstelement_klass->change_state = fps_display_sink_change_state;
@@ -355,7 +355,7 @@ display_current_fps (gpointer data)
"avg-fps:%f", rr, dr, average_fps);
g_signal_emit (G_OBJECT (self),
fpsdisplaysink_signals[SIGNAL_FPS_MEASUREMENTS], 0, rr, dr,
- average_fps);
+ average_fps,self->frames_rendered,self->frames_dropped );
}
if (dr == 0.0) {
--
1.7.1