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.
This commit is contained in:
Sebastian Dröge 2008-06-28 18:13:08 +00:00
parent f30962901c
commit 4b2e3dd210
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-06-28 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/deinterlace2/gstdeinterlace2.c: (gst_deinterlace2_src_query):
Divide latency be 2 to convert from fields to frames.
2008-06-28 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/deinterlace2/tvtime/greedy.c:

View file

@ -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,