transcodebin: Unlock while setting decodebin caps

Otherwise it will deadlock recursing up to notify parent object property changes
This commit is contained in:
Thibault Saunier 2020-11-19 22:56:46 -03:00
parent 5ccaa595a9
commit eb0d72f382

View file

@ -672,8 +672,12 @@ _setup_avoid_reencoding (GstTranscodeBin * self)
}
}
GST_OBJECT_UNLOCK (self);
g_object_set (self->decodebin, "caps", decodecaps, NULL);
gst_caps_unref (decodecaps);
GST_OBJECT_LOCK (self);
}
static gboolean