X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_stream.h;h=3b4ff21827f5f698758cc6f1cad658cabc724ec0;hb=13c581afd2979c5f0467b6fef1f18c4a67b43dd3;hp=0434f81c7acdbf280823520ac3ed20c0e4c4b3fa;hpb=9e9b39ff56d0984db0b51c32fa6c4df01fef8495;p=vlc diff --git a/include/vlc_stream.h b/include/vlc_stream.h index 0434f81c7a..3b4ff21827 100644 --- a/include/vlc_stream.h +++ b/include/vlc_stream.h @@ -1,7 +1,7 @@ /***************************************************************************** - * vlc_stream.h + * vlc_stream.h: Stream (between access and demux) descriptor and methods ***************************************************************************** - * Copyright (C) 1999-2004 VideoLAN + * Copyright (C) 1999-2004 the VideoLAN team * $Id$ * * Authors: Laurent Aimar @@ -18,7 +18,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #ifndef _VLC_STREAM_H @@ -54,8 +54,8 @@ enum stream_query_e /* Special for direct access control from demuxer. * XXX: avoid using it by all means */ - STREAM_CONTROL_ACCESS, /* arg1= int i_access_query, args res: can fail - if access unreachable or access control answer */ + STREAM_CONTROL_ACCESS /* arg1= int i_access_query, args res: can fail + if access unreachable or access control answer */ }; /** @@ -72,6 +72,11 @@ struct stream_t void (*pf_destroy)( stream_t *); stream_sys_t *p_sys; + + /* UTF-16 and UTF-32 file reading */ + vlc_iconv_t conv; + int i_char_width; + vlc_bool_t b_little_endian; }; /** @@ -123,6 +128,9 @@ static inline int stream_Control( stream_t *s, int i_query, ... ) va_list args; int i_result; + if ( s == NULL ) + return VLC_EGENERIC; + va_start( args, i_query ); i_result = s->pf_control( s, i_query, args ); va_end( args );