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 |
*************************************************************************/ |
*************************************************************************/ |
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; |