[vlc-commits] aribcam: fix regression

Yuudai Yamashigi git at videolan.org
Fri Aug 26 05:04:54 CEST 2016


vlc | branch: master | Yuudai Yamashigi <yyamashigi at videolan.org> | Fri Aug 26 12:03:27 2016 +0900| [3809476fe668a84065c6d7e84949f66d0cc04fcf] | committer: Yuudai Yamashigi

aribcam: fix regression

introduced by e77eb3bdb2269c6e085b98cb050918a764dd9b52

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3809476fe668a84065c6d7e84949f66d0cc04fcf
---

 modules/stream_filter/aribcam.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/stream_filter/aribcam.c b/modules/stream_filter/aribcam.c
index b9345a6..932d421 100644
--- a/modules/stream_filter/aribcam.c
+++ b/modules/stream_filter/aribcam.c
@@ -191,14 +191,14 @@ static ssize_t Read( stream_t *p_stream, void *p_buf, size_t i_toread )
             {
                 msg_Err( p_stream, "decoder put failed: %s",
                          GetErrorMessage( i_ret, b25_errors ) );
-                return -1;
+                return 0;
             }
         }
         else
         {
             if ( i_srcread < 0 )
                 msg_Err( p_stream, "Can't read %lu bytes from source stream: %d", i_toread, i_srcread );
-            return -1;
+            return 0;
         }
 
         ARIB_STD_B25_BUFFER getbuf;
@@ -207,7 +207,7 @@ static ssize_t Read( stream_t *p_stream, void *p_buf, size_t i_toread )
         {
             msg_Err( p_stream, "decoder get failed: %s",
                      GetErrorMessage( i_ret, b25_errors ) );
-            return -1;
+            return 0;
         }
 
         if ( (size_t)getbuf.size > i_toread )



More information about the vlc-commits mailing list