From 08149652a1f06314328c40959abec8587ab90d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 3 Sep 2012 14:21:19 +0100 Subject: [PATCH] schroenc: set interlace_coding based on input caps and remove property. --- ext/schroedinger/gstschroenc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ext/schroedinger/gstschroenc.c b/ext/schroedinger/gstschroenc.c index a8152de764..2fb9241f5d 100644 --- a/ext/schroedinger/gstschroenc.c +++ b/ext/schroedinger/gstschroenc.c @@ -181,6 +181,10 @@ gst_schro_enc_class_init (GstSchroEncClass * klass) || strcmp (setting->name, "level") == 0) continue; + /* we configure this based on the input caps */ + if (strcmp (setting->name, "interlaced_coding") == 0) + continue; + switch (setting->type) { case SCHRO_ENCODER_SETTING_TYPE_BOOLEAN: g_object_class_install_property (gobject_class, i + 1, @@ -435,6 +439,10 @@ gst_schro_enc_set_format (GstVideoEncoder * base_video_encoder, #endif } + if (GST_VIDEO_INFO_IS_INTERLACED (&state->info)) { + schro_enc->video_format->interlaced_coding = 1; + } + /* See if downstream caps specify profile/level */ gst_schro_enc_negotiate_profile (schro_enc);