video-converter: set bits and format after conversion
authorWim Taymans <wtaymans@redhat.com>
Sat, 6 Dec 2014 20:02:37 +0000 (21:02 +0100)
committerWim Taymans <wtaymans@redhat.com>
Sat, 6 Dec 2014 20:05:00 +0000 (21:05 +0100)
Update the current format, bits and pstride.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=741187

gst-libs/gst/video/video-converter.c

index 4350874..c49c265 100644 (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) {