[vlc-commits] commit: Fixed picture clean up when closing vout. (Laurent Aimar )
git at videolan.org
git at videolan.org
Tue May 4 22:45:50 CEST 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue May 4 22:41:52 2010 +0200| [9f410e429acdeb12bc75ccc98ee0a325a7c07e37] | committer: Laurent Aimar
Fixed picture clean up when closing vout.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f410e429acdeb12bc75ccc98ee0a325a7c07e37
---
src/video_output/video_output.c | 25 +++++++++----------------
1 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index c68b5d3..79c4ad3 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -624,22 +624,6 @@ static int ThreadInit(vout_thread_t *vout)
return VLC_SUCCESS;
}
-/*****************************************************************************
- * CleanThread: clean up after InitThread
- *****************************************************************************
- * This function is called after a sucessful
- * initialization. It frees all resources allocated by InitThread.
- * XXX You have to enter it with change_lock taken.
- *****************************************************************************/
-static void ThreadClean(vout_thread_t *vout)
-{
- /* Destroy translation tables */
- if (!vout->p->b_error) {
- picture_fifo_Flush(vout->p->decoder_fifo, INT64_MAX, false);
- vout_EndWrapper(vout);
- }
-}
-
static int ThreadDisplayPicture(vout_thread_t *vout,
bool now, mtime_t *deadline)
{
@@ -1004,6 +988,15 @@ static void ThreadChangeZoom(vout_thread_t *vout, int num, int den)
vout_SetDisplayZoom(vout->p->display.vd, num, den);
}
+static void ThreadClean(vout_thread_t *vout)
+{
+ /* Destroy translation tables */
+ if (!vout->p->b_error) {
+ ThreadFlush(vout, true, INT64_MAX);
+ vout_EndWrapper(vout);
+ }
+}
+
/*****************************************************************************
* Thread: video output thread
*****************************************************************************
More information about the vlc-commits
mailing list