vaapiencode: call ensure_encoder() at start()
authorHyunjun Ko <zzoon@igalia.com>
Tue, 29 Nov 2016 05:59:02 +0000 (14:59 +0900)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 1 Dec 2016 14:40:09 +0000 (15:40 +0100)
commit6e6fbd1cbfdaffec6f58b3c9aca58a2216fc4c30
tree202bacc2bdcf07ac6106fc8860b8007d56af11ed
parent4609f7fd5e35fef9699578e2e7c104a143a2f896
vaapiencode: call ensure_encoder() at start()

Currently, specific encoder is created during set_format(). This might
lead to race condition when creating profiles with multiple encoders.

This patch moves ensure_encoder() call to start() vmethod to ensure
avoiding the race condition.

https://bugzilla.gnome.org/show_bug.cgi?id=773546
gst/vaapi/gstvaapiencode.c