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
This commit is contained in:
Wim Taymans 2014-12-06 21:02:37 +01:00
parent 5db596495b
commit a0b8e96b77

View file

@ -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) {