emotion: prevent race condition during gstreamer module shutdown or file set.

Patch by Sohyun Kim <anna1014.kim@samsung.com>


SVN revision: 74719
This commit is contained in:
Cedric BAIL 2012-08-01 08:41:53 +00:00
parent 951a9d2327
commit a0970878cc
3 changed files with 23 additions and 3 deletions

View File

@ -29,6 +29,11 @@
2012-07-03 Cedric Bail
* Track pending object for proper shutdown.
2012-06-05 Sohyun Kim
* Add fimcconvert element to resize and convert color using fimc on device
2012-06-05 Sohyun Kim
* Add fimcconvert element to resize and convert color using fimc on device.
2012-08-01 Cedric Bail
* Fix race condition in gstreamer render function.

View File

@ -12,7 +12,8 @@ Additions:
Fixes:
- build out of tree.
- stride of all YUV video.
- stride of all YUV video
- fix race condition in gstreamer render function on shutdown and file set.
Improvements:

View File

@ -498,6 +498,13 @@ evas_video_sink_samsung_main_render(void *data)
buffer = send->frame;
preroll = send->preroll;
/* frame after cleanup */
if (!preroll && !send->ev->last_buffer)
{
priv = NULL;
goto exit_point;
}
if (!priv || !priv->o || priv->unlocked)
goto exit_point;
@ -630,6 +637,13 @@ evas_video_sink_main_render(void *data)
preroll = send->preroll;
ev = send->ev;
/* frame after cleanup */
if (!preroll && !ev->last_buffer)
{
priv = NULL;
goto exit_point;
}
if (!priv || !priv->o || priv->unlocked)
goto exit_point;