av1enc: Also set AV1E_SET_ROW_MT from the property value when initializing the encoder
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jul 2019 09:23:51 +0000 (12:23 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Jul 2019 09:23:51 +0000 (12:23 +0300)
Previously it was only set if the property was changed after the encoder
was initialized.

ext/aom/gstav1enc.c

index ce3baff..38e9107 100644 (file)
@@ -686,6 +686,8 @@ gst_av1_enc_set_format (GstVideoEncoder * encoder, GstVideoCodecState * state)
   av1enc->encoder_inited = TRUE;
 
   GST_AV1_ENC_APPLY_CODEC_CONTROL (av1enc, AOME_SET_CPUUSED, av1enc->cpu_used);
+  GST_AV1_ENC_APPLY_CODEC_CONTROL (av1enc, AV1E_SET_ROW_MT,
+      (av1enc->row_mt ? 1 : 0));
   g_mutex_unlock (&av1enc->encoder_lock);
 
   return TRUE;