[svn] / branches / dev-api-4 / xvidcore / vfw / src / driverproc.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/vfw/src/driverproc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1053, Mon Jun 9 01:25:19 2003 UTC revision 1171, Sat Oct 4 00:38:49 2003 UTC
# Line 1  Line 1 
1  /**************************************************************************  /*****************************************************************************
2   *   *
3   *      XVID VFW FRONTEND   *      XVID MPEG-4 VFW FRONTEND
4   *      driverproc main   *      - driverproc main -
5     *
6     *  Copyright(C) 2001-2003 Peter Ross <pross@xvid.org>
7   *   *
8   *      This program is free software; you can redistribute it and/or modify   *      This program is free software; you can redistribute it and/or modify
9   *      it under the terms of the GNU General Public License as published by   *      it under the terms of the GNU General Public License as published by
# Line 15  Line 17 
17   *   *
18   *      You should have received a copy of the GNU General Public License   *      You should have received a copy of the GNU General Public License
19   *      along with this program; if not, write to the Free Software   *      along with this program; if not, write to the Free Software
20   *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  *  
  *************************************************************************/  
   
 /**************************************************************************  
21   *   *
22   *      History:   * $Id: driverproc.c,v 1.1.2.6 2003-10-04 00:38:49 edgomez Exp $
23   *   *
24   *      31.08.2002      Configure() export   ****************************************************************************/
  *      01.12.2001      inital version; (c)2001 peter ross <pross@xvid.org>  
  *  
  *************************************************************************/  
25    
26  #include <windows.h>  #include <windows.h>
27  #include <vfw.h>  #include <vfw.h>
# Line 35  Line 30 
30  #include "debug.h"  #include "debug.h"
31  #include "codec.h"  #include "codec.h"
32  #include "config.h"  #include "config.h"
33    #include "status.h"
34  #include "resource.h"  #include "resource.h"
35    
36    
# Line 88  Line 84 
84                                  return 0;                                  return 0;
85                          }                          }
86    
87    
88                codec->status.hDlg = NULL;
89              codec->config.ci_valid = 0;              codec->config.ci_valid = 0;
90              codec->ehandle = codec->dhandle = NULL;              codec->ehandle = codec->dhandle = NULL;
91              codec->fbase = 25;              codec->fbase = 25;
# Line 114  Line 112 
112                  /* compress_end/decompress_end don't always get called */                  /* compress_end/decompress_end don't always get called */
113                  compress_end(codec);                  compress_end(codec);
114                  decompress_end(codec);                  decompress_end(codec);
115            status_destroy_always(&codec->status);
116                  free(codec);                  free(codec);
117                  return DRV_OK;                  return DRV_OK;
118    
# Line 304  Line 303 
303          dwDriverId = DriverProc(0, 0, DRV_OPEN, 0, 0);          dwDriverId = DriverProc(0, 0, DRV_OPEN, 0, 0);
304          if (dwDriverId != (DWORD)NULL)          if (dwDriverId != (DWORD)NULL)
305          {          {
306                  DriverProc(dwDriverId, 0, ICM_CONFIGURE, 0, 0);                  DriverProc(dwDriverId, 0, ICM_CONFIGURE, (LPARAM)GetDesktopWindow(), 0);
307                  DriverProc(dwDriverId, 0, DRV_CLOSE, 0, 0);                  DriverProc(dwDriverId, 0, DRV_CLOSE, 0, 0);
308          }          }
309  }  }

Legend:
Removed from v.1053  
changed lines
  Added in v.1171

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4