[vlc-devel] commit: input_Read: fix return value (none of the callers check it though) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Sep 20 16:25:55 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Sep 20 15:11:31 2008 +0300| [2f302ff4f2d37c5bfe3595469a9ef214fcfd0fbf] | committer: Rémi Denis-Courmont 

input_Read: fix return value (none of the callers check it though)

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

 src/input/input.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 1bcf200..64e82db 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -393,7 +393,7 @@ input_thread_t *__input_CreateThreadExtended( vlc_object_t *p_parent,
  * \param p_parent a vlc_object
  * \param p_item an input item
  * \param b_block should we block until read is finished ?
- * \return the input object id if non blocking, an error code else
+ * \return an error code, VLC_SUCCESS on success
  */
 int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
                    bool b_block )
@@ -420,7 +420,7 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
             return VLC_EGENERIC;
         }
     }
-    return p_input->i_object_id;
+    return VLC_SUCCESS;
 }
 
 /**




More information about the vlc-devel mailing list