schroenc: set interlace_coding based on input caps

and remove property.
This commit is contained in:
Tim-Philipp Müller 2012-09-03 14:21:19 +01:00
parent bc93340fd4
commit 08149652a1

View file

@ -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);