y4m: update for new interlace caps
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 19 Dec 2011 17:44:33 +0000 (18:44 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 19 Dec 2011 17:44:33 +0000 (18:44 +0100)
gst/y4m/gsty4mdec.c

index ba7874b38ecf8d69597df5ebdb0120652c7d02cf..277bb1ffee978e0d1ccb3982b5f7308a1ab8d803 100644 (file)
@@ -382,10 +382,12 @@ gst_y4m_dec_parse_header (GstY4mDec * y4mdec, char *header)
     case 0:
     case '?':
     case 'p':
+      y4mdec->info.interlace_mode = GST_VIDEO_INTERLACE_MODE_PROGRESSIVE;
       y4mdec->info.flags &= ~GST_VIDEO_FLAG_INTERLACED;
       break;
     case 't':
     case 'b':
+      y4mdec->info.interlace_mode = GST_VIDEO_INTERLACE_MODE_INTERLEAVED;
       y4mdec->info.flags |= GST_VIDEO_FLAG_INTERLACED;
       if (interlaced_char == 't')
         y4mdec->info.flags |= GST_VIDEO_FLAG_TFF;