diff options
-rw-r--r-- | src/xine-engine/video_out.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 84ae32549..2c19daee9 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.221 2005/11/14 23:12:16 miguelfreitas Exp $ + * $Id: video_out.c,v 1.222 2005/11/14 23:48:19 miguelfreitas Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -188,7 +188,8 @@ static vo_frame_t *vo_remove_from_img_buf_queue_int (img_buf_fifo_t *queue, int vo_frame_t *previous = NULL; while (!img || queue->locked_for_read) { - img = queue->first; + + img = (queue->locked_for_read) ? NULL : queue->first; #if EXPERIMENTAL_FRAME_QUEUE_OPTIMIZATION if (img) { |