]> git.pld-linux.org Git - packages/transcode.git/blob - transcode-mpeg3.patch
- LDFLAGS, as there were problems on x86_64
[packages/transcode.git] / transcode-mpeg3.patch
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
3 @@ -78,15 +78,16 @@
4  
5    if (param->flag == TC_VIDEO) {
6        if (!file) {
7 +         int error_code;
8           if (!file_a) {
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);
13               }
14               if (verbose & TC_DEBUG)
15                    printf("[%s] Opened video NO copy\n", MOD_NAME);
16           } else if (file_a) {
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);
21               }
22 @@ -97,15 +98,16 @@
23    }
24    if (param->flag == TC_AUDIO) {
25        if (!file_a) {
26 +         int error_code;
27           if (!file) {
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);
32               }
33               if (verbose & TC_DEBUG)
34                    printf("[%s] Opened audio NO copy\n", MOD_NAME);
35           } else if (file) {
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);
40               }
This page took 0.025149 seconds and 3 git commands to generate.