diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2007-01-16 16:00:26 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2007-01-16 16:00:26 +0000 |
commit | 22bb23b9d3ed75affddc3d9277c54adb4b01ff22 (patch) | |
tree | 1403bbecf448d190c7159e294bbc5161f873fdb6 /src | |
parent | 88c6126310edffa4d5b7813c2fad08ef2fd21e16 (diff) | |
download | xine-lib-22bb23b9d3ed75affddc3d9277c54adb4b01ff22.tar.gz xine-lib-22bb23b9d3ed75affddc3d9277c54adb4b01ff22.tar.bz2 |
avoid division by zero.
still need to investigate the cause, might be due to pause when using net_buf_ctrl
CVS patchset: 8513
CVS date: 2007/01/16 16:00:26
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/video_out.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 446ba0a45..f6788d6b2 100644 --- a/src/xine-engine/video_out.c +++ b/src/xine-engine/video_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out.c,v 1.226 2007/01/10 20:13:14 miguelfreitas Exp $ + * $Id: video_out.c,v 1.227 2007/01/16 16:00:26 miguelfreitas Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -1195,7 +1195,7 @@ static void *video_out_loop (void *this_gen) { if (this->clock->speed == XINE_SPEED_PAUSE) paused_loop (this, vpts); - if (next_frame_vpts) { + if (next_frame_vpts && this->clock->speed > 0) { usec_to_sleep = (next_frame_vpts - vpts) * 100 * XINE_FINE_SPEED_NORMAL / (9 * this->clock->speed); } else { /* we don't know when the next frame is due, only wait a little */ |