From 7ef2c677c7e6984a1aa161707a08bdf916d881ed Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 8 Jan 2003 21:21:12 +0000 Subject: allow frames to be freed in paused mode that fixes the problem reported by thibaut (mms pauses xine and then libmpeg2 decoder is disposed - freeing frames) CVS patchset: 3834 CVS date: 2003/01/08 21:21:12 --- src/xine-engine/video_out.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 648d90faa..51b18a4cc 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.129 2003/01/08 14:21:27 esnel Exp $ + * $Id: video_out.c,v 1.130 2003/01/08 21:21:12 miguelfreitas Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -741,7 +741,9 @@ static void paused_loop( vos_t *this, int64_t vpts ) } } + pthread_mutex_unlock( &this->free_img_buf_queue->mutex ); xine_usec_sleep (20000); + pthread_mutex_lock( &this->free_img_buf_queue->mutex ); } this->free_img_buf_queue->locked_for_read = 0; -- cgit v1.2.3