23 |
* |
* |
24 |
* History: |
* History: |
25 |
* |
* |
|
* ... ??? |
|
26 |
* 01.12.2001 inital version; (c)2001 peter ross <suxen_drol@hotmail.com> |
* 01.12.2001 inital version; (c)2001 peter ross <suxen_drol@hotmail.com> |
27 |
* |
* |
28 |
*************************************************************************/ |
*************************************************************************/ |
62 |
|
|
63 |
case DRV_LOAD : |
case DRV_LOAD : |
64 |
case DRV_FREE : |
case DRV_FREE : |
65 |
DRV_OK; |
return DRV_OK; |
66 |
|
|
67 |
case DRV_OPEN : |
case DRV_OPEN : |
68 |
DEBUG("DRV_OPEN"); |
DEBUG("DRV_OPEN"); |
73 |
{ |
{ |
74 |
return DRV_CANCEL; |
return DRV_CANCEL; |
75 |
} |
} |
76 |
|
|
77 |
codec = malloc(sizeof(CODEC)); |
codec = malloc(sizeof(CODEC)); |
78 |
|
|
79 |
if (codec == NULL) |
if (codec == NULL) |
80 |
{ |
{ |
81 |
if (icopen != NULL) |
if (icopen != NULL) |
84 |
} |
} |
85 |
return 0; |
return 0; |
86 |
} |
} |
87 |
|
|
88 |
codec->ehandle = codec->dhandle = NULL; |
codec->ehandle = codec->dhandle = NULL; |
89 |
config_reg_get(&codec->config); |
config_reg_get(&codec->config); |
90 |
|
|
91 |
|
/* bad things happen if this is uncommented |
92 |
|
if (lstrcmp(XVID_BUILD, codec->config.build)) |
93 |
|
{ |
94 |
|
config_reg_default(&codec->config); |
95 |
|
} |
96 |
|
*/ |
97 |
|
|
98 |
if (icopen != NULL) |
if (icopen != NULL) |
99 |
{ |
{ |
100 |
icopen->dwError = ICERR_OK; |
icopen->dwError = ICERR_OK; |
145 |
|
|
146 |
return lParam2; /* size of struct */ |
return lParam2; /* size of struct */ |
147 |
} |
} |
|
DEBUG("ICM_GETINFO end"); |
|
|
|
|
148 |
|
|
149 |
/* state control */ |
/* state control */ |
150 |
|
|