1 |
lavajoe 08/05/08 12:08:07 |
2 |
|
3 |
Added: faad2-2.6.1-broken-pipe.patch |
4 |
Log: |
5 |
Patched to detect writes to a broken pipe (bug #204227) |
6 |
(Portage version: 2.1.4.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 media-libs/faad2/files/faad2-2.6.1-broken-pipe.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/faad2/files/faad2-2.6.1-broken-pipe.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/faad2/files/faad2-2.6.1-broken-pipe.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: faad2-2.6.1-broken-pipe.patch |
15 |
=================================================================== |
16 |
--- faad2/frontend/main.c~ 2007-11-01 06:33:29.000000000 -0600 |
17 |
+++ faad2/frontend/main.c 2008-01-03 18:05:10.000000000 -0700 |
18 |
@@ -640,7 +640,8 @@ |
19 |
|
20 |
if ((frameInfo.error == 0) && (frameInfo.samples > 0) && (!adts_out)) |
21 |
{ |
22 |
- write_audio_file(aufile, sample_buffer, frameInfo.samples, 0); |
23 |
+ if (write_audio_file(aufile, sample_buffer, frameInfo.samples, 0) == 0) |
24 |
+ break; |
25 |
} |
26 |
|
27 |
/* fill buffer */ |
28 |
@@ -976,7 +977,8 @@ |
29 |
|
30 |
if ((frameInfo.error == 0) && (sample_count > 0) && (!adts_out)) |
31 |
{ |
32 |
- write_audio_file(aufile, sample_buffer, sample_count, delay); |
33 |
+ if (write_audio_file(aufile, sample_buffer, sample_count, delay) == 0) |
34 |
+ break; |
35 |
} |
36 |
|
37 |
if (frameInfo.error > 0) |
38 |
|
39 |
|
40 |
|
41 |
-- |
42 |
gentoo-commits@l.g.o mailing list |