summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-08 21:21:12 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-08 21:21:12 +0000
commit7ef2c677c7e6984a1aa161707a08bdf916d881ed (patch)
tree7bb6821034672760e0ccd6074a8c529a33b93547 /src
parenta6d95d986772f662bc4f98e38de617a523212bcf (diff)
downloadxine-lib-7ef2c677c7e6984a1aa161707a08bdf916d881ed.tar.gz
xine-lib-7ef2c677c7e6984a1aa161707a08bdf916d881ed.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/video_out.c4
1 files changed, 3 insertions, 1 deletions
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;