deinterlace: force deinterlacing in "interlaced" mode
authorMatej Knopp <matej.knopp@gmail.com>
Sat, 6 Apr 2013 23:47:56 +0000 (01:47 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 7 Apr 2013 19:48:21 +0000 (20:48 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=697467

gst/deinterlace/gstdeinterlace.c

index 9f59463..b921cee 100644 (file)
@@ -1047,6 +1047,8 @@ gst_deinterlace_get_buffer_state (GstDeinterlace * self, GstVideoFrame * frame,
     return;
 
   interlacing_mode = GST_VIDEO_INFO_INTERLACE_MODE (&frame->info);
+  if (self->mode == GST_DEINTERLACE_MODE_INTERLACED)
+    interlacing_mode = GST_VIDEO_INTERLACE_MODE_INTERLEAVED;
 
   if (state) {
     if (interlacing_mode == GST_VIDEO_INTERLACE_MODE_MIXED) {