mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
schroenc: set interlace_coding based on input caps
and remove property.
This commit is contained in:
parent
bc93340fd4
commit
08149652a1
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue