From 4b2e3dd2107bd42f7ac20489305c6e4e363dcb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 28 Jun 2008 18:13:08 +0000 Subject: gst/deinterlace2/gstdeinterlace2.c: Divide latency be 2 to convert from fields to frames. Original commit message from CVS: * gst/deinterlace2/gstdeinterlace2.c: (gst_deinterlace2_src_query): Divide latency be 2 to convert from fields to frames. --- gst/deinterlace2/gstdeinterlace2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gst/deinterlace2') diff --git a/gst/deinterlace2/gstdeinterlace2.c b/gst/deinterlace2/gstdeinterlace2.c index 64557d48..3998a8fc 100644 --- a/gst/deinterlace2/gstdeinterlace2.c +++ b/gst/deinterlace2/gstdeinterlace2.c @@ -772,6 +772,7 @@ gst_deinterlace2_src_query (GstPad * pad, GstQuery * query) latency = gst_util_uint64_scale (object->method->fields_required * GST_SECOND, object->frame_rate_d, object->frame_rate_n); + latency /= 2; GST_DEBUG ("Our latency: min %" GST_TIME_FORMAT ", max %" GST_TIME_FORMAT, -- cgit v1.2.1