From a0b8e96b77da5c6148b5d0cb16f9ccdafe901bf9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 6 Dec 2014 21:02:37 +0100 Subject: [PATCH] video-converter: set bits and format after conversion Update the current format, bits and pstride. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=741187 --- gst-libs/gst/video/video-converter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/video/video-converter.c b/gst-libs/gst/video/video-converter.c index 4350874..c49c265 100644 --- a/gst-libs/gst/video/video-converter.c +++ b/gst-libs/gst/video/video-converter.c @@ -1371,6 +1371,10 @@ chain_convert (GstVideoConverter * convert, GstLineCache * prev) pass_alloc = TRUE; } else do_conversion = FALSE; + + convert->current_bits = convert->pack_bits; + convert->current_format = convert->pack_format; + convert->current_pstride = convert->current_bits >> 1; } else { /* we did gamma, just do colorspace conversion if needed */ if (same_primaries) { -- 2.7.4