projects
/
platform
/
upstream
/
libvorbis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23361c7
)
Similarly check for error in seeking_example
author
Monty
<xiphmont@xiph.org>
Fri, 24 Jul 2009 01:53:20 +0000
(
01:53
+0000)
committer
Monty
<xiphmont@xiph.org>
Fri, 24 Jul 2009 01:53:20 +0000
(
01:53
+0000)
svn path=/trunk/vorbis/; revision=16329
examples/seeking_example.c
patch
|
blob
|
history
diff --git
a/examples/seeking_example.c
b/examples/seeking_example.c
index
bd2e3a4
..
a968a81
100644
(file)
--- a/
examples/seeking_example.c
+++ b/
examples/seeking_example.c
@@
-116,7
+116,10
@@
int main(){
i=0;
while(i<pcmlength*2){
int ret=ov_read(&ov,bigassbuffer+i,pcmlength*2-i,1,1,1,&dummy);
- if(ret<0)continue;
+ if(ret<0){
+ fprintf(stderr,"Error reading file.\n");
+ exit(1);
+ }
if(ret){
i+=ret;
}else{