[vlc-devel] commit: Fixed uninitialized value. (Laurent Aimar )
git version control
git at videolan.org
Thu Jan 7 08:31:24 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Jan 7 08:29:26 2010 +0100| [fe403f8836863eda627835dded2d67b672eed804] | committer: Laurent Aimar
Fixed uninitialized value.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe403f8836863eda627835dded2d67b672eed804
---
src/input/input.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 0241056..cd935fa 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2750,11 +2750,10 @@ static void InputSourceMeta( input_thread_t *p_input,
bool has_meta;
/* Read access meta */
- if( p_access )
- has_meta = !access_Control( p_access, ACCESS_GET_META, p_meta );
+ has_meta = p_access && !access_Control( p_access, ACCESS_GET_META, p_meta );
/* Read demux meta */
- has_meta = (!demux_Control( p_demux, DEMUX_GET_META, p_meta )) || has_meta;
+ has_meta |= !demux_Control( p_demux, DEMUX_GET_META, p_meta );
bool has_unsupported;
if( demux_Control( p_demux, DEMUX_HAS_UNSUPPORTED_META, &has_unsupported ) )
More information about the vlc-devel
mailing list