Re: [Mesa-dev] [PATCH] st/omx: fix crash when vid_enc_Constructor fails

2016-07-07 Thread Leo Liu
On 07/07/2016 11:17 AM, Julien Isorce wrote: It happens when trying to use omxh264enc with nouveau driver because it does not provide any encoder at the moment. It crashes on enc_ReleaseTasks(&priv->free_tasks) because at this time the list is not initialized. So this patch make sure the lists

Re: [Mesa-dev] [PATCH] st/omx: fix crash when vid_enc_Constructor fails

2016-07-07 Thread Emil Velikov
Hi Julien, On 7 July 2016 at 16:17, Julien Isorce wrote: > It happens when trying to use omxh264enc with nouveau driver > because it does not provide any encoder at the moment. > > It crashes on enc_ReleaseTasks(&priv->free_tasks) because > at this time the list is not initialized. > So this patc

[Mesa-dev] [PATCH] st/omx: fix crash when vid_enc_Constructor fails

2016-07-07 Thread Julien Isorce
It happens when trying to use omxh264enc with nouveau driver because it does not provide any encoder at the moment. It crashes on enc_ReleaseTasks(&priv->free_tasks) because at this time the list is not initialized. So this patch make sure the lists are initialized. Another way to fix this would