From 5bc6b54185c30912a1d0b870f50fa57b6f261893 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Mon, 23 Jul 2012 11:25:34 +0200 Subject: [PATCH] mpeg2dec: Fix GstVideoInfo pointer --- ext/mpeg2dec/gstmpeg2dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c index 00d4073814..66730768d6 100644 --- a/ext/mpeg2dec/gstmpeg2dec.c +++ b/ext/mpeg2dec/gstmpeg2dec.c @@ -813,8 +813,8 @@ handle_picture (GstMpeg2dec * mpeg2dec, const mpeg2_info_t * info, GST_DEBUG_OBJECT (mpeg2dec, "picture %s, frame %i", key_frame ? ", kf," : " ", frame->system_frame_number); - if (GST_VIDEO_INFO_IS_INTERLACED (&frame->info)) { - // This implies SEQ_FLAG_PROGRESSIVE_SEQUENCE is not set + if (GST_VIDEO_INFO_IS_INTERLACED (&mpeg2dec->decoded_info)) { + /* This implies SEQ_FLAG_PROGRESSIVE_SEQUENCE is not set */ if (picture->flags & PIC_FLAG_TOP_FIELD_FIRST) { GST_BUFFER_FLAG_SET (buffer, GST_VIDEO_BUFFER_FLAG_TFF); }