summaryrefslogtreecommitdiff
path: root/gst/debugutils/fpsdisplaysink.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/debugutils/fpsdisplaysink.c')
-rw-r--r--gst/debugutils/fpsdisplaysink.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gst/debugutils/fpsdisplaysink.c b/gst/debugutils/fpsdisplaysink.c
index 2521ca637..7c97dfb13 100644
--- a/gst/debugutils/fpsdisplaysink.c
+++ b/gst/debugutils/fpsdisplaysink.c
@@ -56,13 +56,6 @@
#define FPS_DISPLAY_INTERVAL_MS 500 /* 500 ms */
#define DEFAULT_FONT "Sans 20"
-static GstElementDetails fps_display_sink_details = {
- "Measure and show framerate on videosink",
- "Sink/Video",
- "Shows the current frame-rate and drop-rate of the videosink as overlay or text on stdout",
- "Zeeshan Ali <zeeshan.ali@nokia.com>, Stefan Kost <stefan.kost@nokia.com>"
-};
-
/* generic templates */
static GstStaticPadTemplate fps_display_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
@@ -127,7 +120,10 @@ fps_display_sink_class_init (GstFPSDisplaySinkClass * klass)
gst_element_class_add_pad_template (gstelement_klass,
gst_static_pad_template_get (&fps_display_sink_template));
- gst_element_class_set_details (gstelement_klass, &fps_display_sink_details);
+ gst_element_class_set_details_simple (gstelement_klass,
+ "Measure and show framerate on videosink", "Sink/Video",
+ "Shows the current frame-rate and drop-rate of the videosink as overlay or text on stdout",
+ "Zeeshan Ali <zeeshan.ali@nokia.com>, Stefan Kost <stefan.kost@nokia.com>");
}
static gboolean