fpsdisplaysink: small cleanup

Add one one example and lower the fon't size for the overlay.
This commit is contained in:
Stefan Kost 2010-08-18 11:35:44 +03:00
parent 60c963f0ac
commit 9a03a43696

View file

@ -28,6 +28,7 @@
* gst-launch videotestsrc ! fpsdisplaysink * gst-launch videotestsrc ! fpsdisplaysink
* gst-launch videotestsrc ! fpsdisplaysink text-overlay=false * gst-launch videotestsrc ! fpsdisplaysink text-overlay=false
* gst-launch filesrc location=video.avi ! decodebin2 name=d ! queue ! fpsdisplaysink d. ! queue ! fakesink sync=true * gst-launch filesrc location=video.avi ! decodebin2 name=d ! queue ! fpsdisplaysink d. ! queue ! fakesink sync=true
* gst-launch playbin2 uri=file:///path/to/video.avi video-sink="fpsdisplaysink" audio-sink=fakesink
* ]| * ]|
* </refsect2> * </refsect2>
*/ */
@ -52,7 +53,7 @@
#define DEFAULT_SIGNAL_FPS_MEASUREMENTS FALSE #define DEFAULT_SIGNAL_FPS_MEASUREMENTS FALSE
#define DEFAULT_FPS_UPDATE_INTERVAL_MS 500 /* 500 ms */ #define DEFAULT_FPS_UPDATE_INTERVAL_MS 500 /* 500 ms */
#define DEFAULT_FONT "Sans 20" #define DEFAULT_FONT "Sans 15"
/* generic templates */ /* generic templates */
static GstStaticPadTemplate fps_display_sink_template = static GstStaticPadTemplate fps_display_sink_template =