Lines 68-74
Link Here
|
68 |
MOD_open |
68 |
MOD_open |
69 |
{ |
69 |
{ |
70 |
|
70 |
|
71 |
int i; |
71 |
int i,return_value; |
72 |
|
72 |
|
73 |
param->fd = NULL; |
73 |
param->fd = NULL; |
74 |
|
74 |
|
Lines 79-92
Link Here
|
79 |
if (param->flag == TC_VIDEO) { |
79 |
if (param->flag == TC_VIDEO) { |
80 |
if (!file) { |
80 |
if (!file) { |
81 |
if (!file_a) { |
81 |
if (!file_a) { |
82 |
if((file = mpeg3_open(vob->video_in_file))==NULL) { |
82 |
if((file = mpeg3_open(vob->video_in_file, &return_value))==NULL) { |
83 |
fprintf(stderr, "open file failed\n"); |
83 |
fprintf(stderr, "open file failed\n"); |
84 |
return(TC_IMPORT_ERROR); |
84 |
return(TC_IMPORT_ERROR); |
85 |
} |
85 |
} |
86 |
if (verbose & TC_DEBUG) |
86 |
if (verbose & TC_DEBUG) |
87 |
printf("[%s] Opened video NO copy\n", MOD_NAME); |
87 |
printf("[%s] Opened video NO copy\n", MOD_NAME); |
88 |
} else if (file_a) { |
88 |
} else if (file_a) { |
89 |
if((file = mpeg3_open_copy(vob->video_in_file, file_a))==NULL) { |
89 |
if((file = mpeg3_open_copy(vob->video_in_file, file_a, &return_value))==NULL) { |
90 |
fprintf(stderr, "open file failed\n"); |
90 |
fprintf(stderr, "open file failed\n"); |
91 |
return(TC_IMPORT_ERROR); |
91 |
return(TC_IMPORT_ERROR); |
92 |
} |
92 |
} |
Lines 98-111
Link Here
|
98 |
if (param->flag == TC_AUDIO) { |
98 |
if (param->flag == TC_AUDIO) { |
99 |
if (!file_a) { |
99 |
if (!file_a) { |
100 |
if (!file) { |
100 |
if (!file) { |
101 |
if((file_a = mpeg3_open(vob->audio_in_file))==NULL) { |
101 |
if((file_a = mpeg3_open(vob->audio_in_file, &return_value))==NULL) { |
102 |
fprintf(stderr, "open audio file failed\n"); |
102 |
fprintf(stderr, "open audio file failed\n"); |
103 |
return(TC_IMPORT_ERROR); |
103 |
return(TC_IMPORT_ERROR); |
104 |
} |
104 |
} |
105 |
if (verbose & TC_DEBUG) |
105 |
if (verbose & TC_DEBUG) |
106 |
printf("[%s] Opened audio NO copy\n", MOD_NAME); |
106 |
printf("[%s] Opened audio NO copy\n", MOD_NAME); |
107 |
} else if (file) { |
107 |
} else if (file) { |
108 |
if((file_a = mpeg3_open_copy(vob->audio_in_file, file))==NULL) { |
108 |
if((file_a = mpeg3_open_copy(vob->audio_in_file, file, &return_value))==NULL) { |
109 |
fprintf(stderr, "open_copy audio file failed\n"); |
109 |
fprintf(stderr, "open_copy audio file failed\n"); |
110 |
return(TC_IMPORT_ERROR); |
110 |
return(TC_IMPORT_ERROR); |
111 |
} |
111 |
} |