X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess_output%2Fdummy.c;h=183e41d323d201768f15f7c47ac2da90b2f2bf09;hb=497b59e4fc525cca1fd422c0b5ece0672d4d8036;hp=3f9ee82fa716dc72c744fec94782cc2afdec9e4d;hpb=298f0e468edf5cbbf05d852bb58c7ef762a6a571;p=vlc diff --git a/modules/access_output/dummy.c b/modules/access_output/dummy.c index 3f9ee82fa7..183e41d323 100644 --- a/modules/access_output/dummy.c +++ b/modules/access_output/dummy.c @@ -1,7 +1,7 @@ /***************************************************************************** * dummy.c ***************************************************************************** - * Copyright (C) 2001, 2002 VideoLAN + * Copyright (C) 2001, 2002 the VideoLAN team * $Id$ * * Authors: Laurent Aimar @@ -19,16 +19,21 @@ * * 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. *****************************************************************************/ /***************************************************************************** * Preamble *****************************************************************************/ -#include -#include -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include +#include +#include /***************************************************************************** * Module descriptor @@ -37,8 +42,11 @@ static int Open ( vlc_object_t * ); static void Close( vlc_object_t * ); vlc_module_begin(); - set_description( _("Dummy stream ouput") ); + set_description( N_("Dummy stream output") ); + set_shortname( N_( "Dummy" )); set_capability( "sout access", 0 ); + set_category( CAT_SOUT ); + set_subcategory( SUBCAT_SOUT_ACO ); add_shortcut( "dummy" ); set_callbacks( Open, Close ); vlc_module_end(); @@ -47,7 +55,7 @@ vlc_module_end(); /***************************************************************************** * Exported prototypes *****************************************************************************/ -static int Write( sout_access_out_t *, block_t * ); +static ssize_t Write( sout_access_out_t *, block_t * ); static int Seek ( sout_access_out_t *, off_t ); /***************************************************************************** @@ -77,9 +85,9 @@ static void Close( vlc_object_t * p_this ) /***************************************************************************** * Read: standard read on a file descriptor. *****************************************************************************/ -static int Write( sout_access_out_t *p_access, block_t *p_buffer ) +static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer ) { - int64_t i_write = 0; + size_t i_write = 0; block_t *b = p_buffer; while( b ) @@ -91,6 +99,7 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer ) block_ChainRelease( p_buffer ); + (void)p_access; return i_write; } @@ -99,6 +108,7 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer ) *****************************************************************************/ static int Seek( sout_access_out_t *p_access, off_t i_pos ) { + (void)p_access; (void)i_pos; return 0; }