From a5ff88df2a8f608912fb77c7e79756c8fe261de8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 6 Mar 2006 16:18:51 +0000 Subject: [PATCH] gst-libs/gst/video/gstvideosink.c: Throw away frames that are later than 20 ms. Original commit message from CVS: * gst-libs/gst/video/gstvideosink.c: (gst_video_sink_init), (gst_video_sink_class_init): Throw away frames that are later than 20 ms. --- ChangeLog | 6 ++++++ gst-libs/gst/video/gstvideosink.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 56ed0b047d..cc7977c017 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-06 Wim Taymans + + * gst-libs/gst/video/gstvideosink.c: (gst_video_sink_init), + (gst_video_sink_class_init): + Throw away frames that are later than 20 ms. + 2006-03-06 Tim-Philipp Müller * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps): diff --git a/gst-libs/gst/video/gstvideosink.c b/gst-libs/gst/video/gstvideosink.c index 73bc0783fe..4ac08b1d7d 100644 --- a/gst-libs/gst/video/gstvideosink.c +++ b/gst-libs/gst/video/gstvideosink.c @@ -99,6 +99,7 @@ gst_video_sink_init (GstVideoSink * videosink) { videosink->width = 0; videosink->height = 0; + GST_BASE_SINK (videosink)->abidata.ABI.max_lateness = 20 * GST_MSECOND; } static void @@ -110,7 +111,7 @@ gst_video_sink_class_init (GstVideoSinkClass * klass) gobject_class = (GObjectClass *) klass; gstelement_class = (GstElementClass *) klass; - parent_class = g_type_class_ref (GST_TYPE_ELEMENT); + parent_class = g_type_class_peek_parent (klass); } static void