[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 1393, Wed Mar 31 11:55:34 2004 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
  *  
  *************************************************************************/  
   
 /**************************************************************************  
  *  
  *      History:  
21   *   *
22   *      31.08.2002      Configure() export   * $Id: driverproc.c,v 1.1.2.8 2004-03-31 11:55:34 syskin Exp $
  *      01.12.2001      inital version; (c)2001 peter ross <pross@xvid.org>  
23   *   *
24   *************************************************************************/   ****************************************************************************/
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 47  Line 43 
43      return TRUE;      return TRUE;
44  }  }
45    
   
   
46  /* __declspec(dllexport) */ LRESULT WINAPI DriverProc(  /* __declspec(dllexport) */ LRESULT WINAPI DriverProc(
47          DWORD dwDriverId,          DWORD dwDriverId,
48          HDRVR hDriver,          HDRVR hDriver,
# Line 69  Line 63 
63    
64          case DRV_OPEN :          case DRV_OPEN :
65                  DPRINTF("DRV_OPEN");                  DPRINTF("DRV_OPEN");
66    
67                  {                  {
68                          ICOPEN * icopen = (ICOPEN *)lParam2;                          ICOPEN * icopen = (ICOPEN *)lParam2;
69    
# Line 88  Line 83 
83                                  return 0;                                  return 0;
84                          }                          }
85    
86                            memset(codec, 0, sizeof(CODEC));
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.1393

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