summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Thommeret <hftom@free.fr>2008-12-30 10:51:35 +0000
committerChristophe Thommeret <hftom@free.fr>2008-12-30 10:51:35 +0000
commitcf092eb7e4e762d7bbf92f78bf2be9667ed1a1b4 (patch)
treeb9d8a0a0ce2e7819308e3c3f3628a68bfc67983e
parentb891020134094b26d2e4ad797ecfac87be593847 (diff)
downloadxine-lib-cf092eb7e4e762d7bbf92f78bf2be9667ed1a1b4.tar.gz
xine-lib-cf092eb7e4e762d7bbf92f78bf2be9667ed1a1b4.tar.bz2
Future frame fixups.
-rw-r--r--src/xine-engine/video_out.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c
index 6b0353bee..f99067ad4 100644
--- a/src/xine-engine/video_out.c
+++ b/src/xine-engine/video_out.c
@@ -930,8 +930,8 @@ static vo_frame_t *get_next_frame (vos_t *this, int64_t cur_vpts,
img->vpts = cur_vpts;
/* extra info of the backup is thrown away, because it is not up to date */
_x_extra_info_reset(img->extra_info);
+ img->future_frame = NULL;
}
- img->future_frame = NULL;
return img;
} else {
@@ -990,10 +990,12 @@ static vo_frame_t *get_next_frame (vos_t *this, int64_t cur_vpts,
* remove frame from display queue and show it
*/
- if ( img->next )
- img->future_frame = img->next;
- else
- img->future_frame = NULL;
+ if ( img ) {
+ if ( img->next )
+ img->future_frame = img->next;
+ else
+ img->future_frame = NULL;
+ }
img = vo_remove_from_img_buf_queue_int (this->display_img_buf_queue, 1, 0, 0, 0, 0, 0);
pthread_mutex_unlock(&this->display_img_buf_queue->mutex);