summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-04-19 12:29:56 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-04-19 12:31:39 +0200
commit7ff3293a44803fb7e63b90a7f331ea4f6c24f885 (patch)
tree808c1f1e19554dad6443a6d39e5881d0c40ea420 /gst-libs
parentf1ec8fcb054355e6411bcc6473aae8b00577b5c5 (diff)
downloadgstreamer-plugins-bad-7ff3293a44803fb7e63b90a7f331ea4f6c24f885.tar.gz
video: Update for libgstvideo API changes
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/video/gstbasevideodecoder.c5
-rw-r--r--gst-libs/gst/video/gstbasevideoencoder.c4
2 files changed, 2 insertions, 7 deletions
diff --git a/gst-libs/gst/video/gstbasevideodecoder.c b/gst-libs/gst/video/gstbasevideodecoder.c
index 89e1d0a0e..271551d4f 100644
--- a/gst-libs/gst/video/gstbasevideodecoder.c
+++ b/gst-libs/gst/video/gstbasevideodecoder.c
@@ -2028,10 +2028,7 @@ gst_base_video_decoder_set_src_caps (GstBaseVideoDecoder * base_video_decoder)
info->fps_d = state->fps_d;
if (state->have_interlaced) {
- if (state->interlaced)
- GST_VIDEO_INFO_FLAG_SET (info, GST_VIDEO_FLAG_INTERLACED);
- if (state->top_field_first)
- GST_VIDEO_INFO_FLAG_SET (info, GST_VIDEO_FLAG_TFF);
+ info->interlace_mode = GST_VIDEO_INTERLACE_MODE_INTERLEAVED;
}
/* FIXME : Handle chroma site */
diff --git a/gst-libs/gst/video/gstbasevideoencoder.c b/gst-libs/gst/video/gstbasevideoencoder.c
index 36248bb06..13160ce0a 100644
--- a/gst-libs/gst/video/gstbasevideoencoder.c
+++ b/gst-libs/gst/video/gstbasevideoencoder.c
@@ -351,9 +351,7 @@ gst_base_video_encoder_sink_setcaps (GstBaseVideoEncoder * base_video_encoder,
/* FIXME (Edward): We need flags in GstVideoInfo to know whether
* interlaced field was present in input caps */
tmp_state.have_interlaced = tmp_state.interlaced =
- GST_VIDEO_INFO_FLAG_IS_SET (&tmp_info, GST_VIDEO_FLAG_INTERLACED);
- tmp_state.top_field_first =
- GST_VIDEO_INFO_FLAG_IS_SET (&tmp_info, GST_VIDEO_FLAG_TFF);
+ GST_VIDEO_INFO_IS_INTERLACED (&tmp_info);
if (changed) {
/* arrange draining pending frames */