changeset 2549:0cc87456f0ad libavformat

Forward error code when reading a v4l2 frame Patch by Benoit Fouet (benoit.fouet AT purplelabs DOT com)
author lucabe
date Thu, 13 Sep 2007 12:46:30 +0000
parents 276257e703af
children e9c34ec665c6
files v4l2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/v4l2.c	Thu Sep 13 03:22:47 2007 +0000
+++ b/v4l2.c	Thu Sep 13 12:46:30 2007 +0000
@@ -608,7 +608,7 @@
         return AVERROR(EIO);
     }
     if (res < 0) {
-        return AVERROR(EIO);
+        return res;
     }
 
     if (s1->streams[0]->codec->coded_frame) {