summaryrefslogtreecommitdiff
path: root/legacy/emotion/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-08-01 08:41:53 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-08-01 08:41:53 +0000
commita0970878ccbd2df8299e04d8462d32f87c667788 (patch)
treece92a97942e7a1942c94b6e655d6713f7f28c1f0 /legacy/emotion/src
parent951a9d2327d9acaa464577c021d2d846f028fd56 (diff)
emotion: prevent race condition during gstreamer module shutdown or file set.
Patch by Sohyun Kim <anna1014.kim@samsung.com> SVN revision: 74719
Diffstat (limited to 'legacy/emotion/src')
-rw-r--r--legacy/emotion/src/modules/gstreamer/emotion_sink.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/legacy/emotion/src/modules/gstreamer/emotion_sink.c b/legacy/emotion/src/modules/gstreamer/emotion_sink.c
index 6cc617ba50..b9e2e748b5 100644
--- a/legacy/emotion/src/modules/gstreamer/emotion_sink.c
+++ b/legacy/emotion/src/modules/gstreamer/emotion_sink.c
@@ -498,6 +498,13 @@ evas_video_sink_samsung_main_render(void *data)
498 buffer = send->frame; 498 buffer = send->frame;
499 preroll = send->preroll; 499 preroll = send->preroll;
500 500
501 /* frame after cleanup */
502 if (!preroll && !send->ev->last_buffer)
503 {
504 priv = NULL;
505 goto exit_point;
506 }
507
501 if (!priv || !priv->o || priv->unlocked) 508 if (!priv || !priv->o || priv->unlocked)
502 goto exit_point; 509 goto exit_point;
503 510
@@ -630,6 +637,13 @@ evas_video_sink_main_render(void *data)
630 preroll = send->preroll; 637 preroll = send->preroll;
631 ev = send->ev; 638 ev = send->ev;
632 639
640 /* frame after cleanup */
641 if (!preroll && !ev->last_buffer)
642 {
643 priv = NULL;
644 goto exit_point;
645 }
646
633 if (!priv || !priv->o || priv->unlocked) 647 if (!priv || !priv->o || priv->unlocked)
634 goto exit_point; 648 goto exit_point;
635 649