]> git.sesse.net Git - vlc/blobdiff - src/video_output/video_yuv.c
* Mandatory step for video output IV and the audio output quality
[vlc] / src / video_output / video_yuv.c
index 432d89e1c35d05f1452849d7cd11b93f6a341f51..caaa1dc2ac3c4f1fb6e69bc225fe0becf05463f8 100644 (file)
@@ -3,8 +3,9 @@
  * These functions set up YUV tables for colorspace conversion
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
+ * $Id: video_yuv.c,v 1.48 2001/05/01 04:18:18 sam Exp $
  *
- * Authors:
+ * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -44,8 +45,6 @@
 
 #include "intf_msg.h"
 
-#include "main.h"
-
 /*****************************************************************************
  * vout_InitYUV: allocate and initialize translation tables
  *****************************************************************************
 int vout_InitYUV( vout_thread_t *p_vout )
 {
     /* Choose the best module */
-    p_vout->yuv.p_module = module_Need( p_main->p_module_bank,
-                                        MODULE_CAPABILITY_YUV, NULL );
+    p_vout->yuv.p_module = module_Need( MODULE_CAPABILITY_YUV, NULL );
 
     if( p_vout->yuv.p_module == NULL )
     {
         intf_ErrMsg( "vout error: no suitable yuv module" );
-       return( -1 );
+        return( -1 );
     }
 
 #define yuv_functions p_vout->yuv.p_module->p_functions->yuv.functions.yuv
@@ -93,6 +91,6 @@ int vout_ResetYUV( vout_thread_t *p_vout )
 void vout_EndYUV( vout_thread_t *p_vout )
 {
     p_vout->yuv.pf_end( p_vout );
-    module_Unneed( p_main->p_module_bank, p_vout->yuv.p_module );
+    module_Unneed( p_vout->yuv.p_module );
 }