1 --- import/import_mpeg3.c.org 2006-08-20 17:42:22.067601250 +0200
2 +++ import/import_mpeg3.c 2006-08-20 17:44:33.239799000 +0200
5 if (param->flag == TC_VIDEO) {
9 - if((file = mpeg3_open(vob->video_in_file))==NULL) {
10 + if((file = mpeg3_open(vob->video_in_file, &error_code))==NULL) {
11 fprintf(stderr, "open file failed\n");
12 return(TC_IMPORT_ERROR);
14 if (verbose & TC_DEBUG)
15 printf("[%s] Opened video NO copy\n", MOD_NAME);
17 - if((file = mpeg3_open_copy(vob->video_in_file, file_a))==NULL) {
18 + if((file = mpeg3_open_copy(vob->video_in_file, file_a, &error_code))==NULL) {
19 fprintf(stderr, "open file failed\n");
20 return(TC_IMPORT_ERROR);
24 if (param->flag == TC_AUDIO) {
28 - if((file_a = mpeg3_open(vob->audio_in_file))==NULL) {
29 + if((file_a = mpeg3_open(vob->audio_in_file, &error_code))==NULL) {
30 fprintf(stderr, "open audio file failed\n");
31 return(TC_IMPORT_ERROR);
33 if (verbose & TC_DEBUG)
34 printf("[%s] Opened audio NO copy\n", MOD_NAME);
36 - if((file_a = mpeg3_open_copy(vob->audio_in_file, file))==NULL) {
37 + if((file_a = mpeg3_open_copy(vob->audio_in_file, file, &error_code))==NULL) {
38 fprintf(stderr, "open_copy audio file failed\n");
39 return(TC_IMPORT_ERROR);