94 |
codec->fincr = 1; |
codec->fincr = 1; |
95 |
config_reg_get(&codec->config); |
config_reg_get(&codec->config); |
96 |
|
|
97 |
/* bad things happen if this is uncommented |
#if 0 |
98 |
|
/* bad things happen if this piece of code is activated */ |
99 |
if (lstrcmp(XVID_BUILD, codec->config.build)) |
if (lstrcmp(XVID_BUILD, codec->config.build)) |
100 |
{ |
{ |
101 |
config_reg_default(&codec->config); |
config_reg_default(&codec->config); |
102 |
} |
} |
103 |
*/ |
#endif |
104 |
|
|
105 |
if (icopen != NULL) |
if (icopen != NULL) |
106 |
{ |
{ |
111 |
|
|
112 |
case DRV_CLOSE : |
case DRV_CLOSE : |
113 |
DPRINTF("DRV_CLOSE"); |
DPRINTF("DRV_CLOSE"); |
114 |
// compress_end/decompress_end don't always get called |
/* compress_end/decompress_end don't always get called */ |
115 |
compress_end(codec); |
compress_end(codec); |
116 |
decompress_end(codec); |
decompress_end(codec); |
117 |
free(codec); |
free(codec); |
197 |
return 0; |
return 0; |
198 |
} |
} |
199 |
memcpy(&codec->config,(void*)lParam1, sizeof(CONFIG)); |
memcpy(&codec->config,(void*)lParam1, sizeof(CONFIG)); |
200 |
return 0; // sizeof(CONFIG); |
return 0; /* sizeof(CONFIG); */ |
201 |
|
|
202 |
/* not sure the difference, private/public data? */ |
/* not sure the difference, private/public data? */ |
203 |
|
|