From f96eca302c7b3de09ee191b90e17e63cae14c1c3 Mon Sep 17 00:00:00 2001 From: durchflieger Date: Mon, 11 Apr 2011 08:29:17 +0000 Subject: Do not lock last frame. In xine-lib 1.2 function 'get_last_frame' returns already a locked frame. This new behavior was introduced by a recent patch. --- xine_frontend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xine_frontend.c b/xine_frontend.c index 376c101e..bcd59c83 100644 --- a/xine_frontend.c +++ b/xine_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend.c,v 1.119 2011-03-10 10:03:12 durchflieger Exp $ + * $Id: xine_frontend.c,v 1.120 2011-04-11 08:29:17 durchflieger Exp $ * */ @@ -2025,8 +2025,10 @@ static char *fe_grab(frontend_t *this_gen, int *size, int jpeg, return img; #else vo_frame_t *frame = this->stream->video_out->get_last_frame (this->stream->video_out); +#if XINE_VERSION_CODE < 10190 if(frame) frame->lock(frame); +#endif this->stream->xine->port_ticket->release(this->stream->xine->port_ticket, 0); if(!frame) { -- cgit v1.2.3