summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-06-28 18:13:08 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-06-28 18:13:08 +0000
commit4b2e3dd2107bd42f7ac20489305c6e4e363dcb41 (patch)
treee2c65770d5910024fcc3deb3165405e9ae5eb891
parentf30962901cd5528b2d3951591789ff079e03f95b (diff)
downloadgst-plugins-bad-4b2e3dd2107bd42f7ac20489305c6e4e363dcb41.tar.gz
gst-plugins-bad-4b2e3dd2107bd42f7ac20489305c6e4e363dcb41.tar.bz2
gst-plugins-bad-4b2e3dd2107bd42f7ac20489305c6e4e363dcb41.zip
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.
-rw-r--r--ChangeLog5
-rw-r--r--gst/deinterlace2/gstdeinterlace2.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e09ae758..c66b754b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
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:
(deinterlace_greedy_packed422_scanline_c),
(deinterlace_greedy_packed422_scanline_mmx),
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,