diff options
author | phintuka <phintuka> | 2008-11-14 23:46:57 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-11-14 23:46:57 +0000 |
commit | 783bc6e57f1b379355f3d8b4c90b52739f69dab1 (patch) | |
tree | 23d8a9114d67e1d572cdf241f641a1b8d9899e36 | |
parent | 7a1a90e2fa3bd55eb512aaa28268fd8be0abbe86 (diff) | |
download | xineliboutput-783bc6e57f1b379355f3d8b4c90b52739f69dab1.tar.gz xineliboutput-783bc6e57f1b379355f3d8b4c90b52739f69dab1.tar.bz2 |
Include "terminate key pressed" condition in fbfe_run() return value
-rw-r--r-- | xine_fbfe_frontend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xine_fbfe_frontend.c b/xine_fbfe_frontend.c index b1330a11..694f76c5 100644 --- a/xine_fbfe_frontend.c +++ b/xine_fbfe_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_fbfe_frontend.c,v 1.39 2008-11-14 23:31:37 phintuka Exp $ + * $Id: xine_fbfe_frontend.c,v 1.40 2008-11-14 23:46:57 phintuka Exp $ * */ @@ -217,13 +217,13 @@ static int fbfe_run(frontend_t *this_gen) { fbfe_t *this = (fbfe_t*)this_gen; - if(this && this->x.playback_finished) - return !this->x.playback_finished; + if (!this || this->fe.xine_is_finished(this_gen, 0) != FE_XINE_RUNNING) + return 0; /* just sleep 500ms */ select(0, NULL, NULL, NULL, &(struct timeval){ .tv_sec = 0, .tv_usec = 500*1000 }); - return !(!this || this->x.playback_finished); + return 1; } static void fbfe_display_close(frontend_t *this_gen) |