1 /*****************************************************************************
2 * dummy.c: dummy stream output module
3 *****************************************************************************
4 * Copyright (C) 2003-2004 VLC authors and VideoLAN
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
32 #include <vlc_common.h>
33 #include <vlc_plugin.h>
34 #include <vlc_block.h>
37 /*****************************************************************************
39 *****************************************************************************/
40 static int Open ( vlc_object_t
* );
42 static sout_stream_id_sys_t
*Add( sout_stream_t
*, const es_format_t
* );
43 static void Del ( sout_stream_t
*, sout_stream_id_sys_t
* );
44 static int Send( sout_stream_t
*, sout_stream_id_sys_t
*, block_t
* );
46 /*****************************************************************************
48 *****************************************************************************/
50 set_description( N_("Dummy stream output") )
51 set_capability( "sout stream", 50 )
52 add_shortcut( "dummy", "drop" )
53 set_callbacks( Open
, NULL
)
56 /*****************************************************************************
58 *****************************************************************************/
59 static int Open( vlc_object_t
*p_this
)
61 sout_stream_t
*p_stream
= (sout_stream_t
*)p_this
;
63 p_stream
->pf_add
= Add
;
64 p_stream
->pf_del
= Del
;
65 p_stream
->pf_send
= Send
;
67 p_stream
->p_sys
= NULL
;
72 static sout_stream_id_sys_t
*Add( sout_stream_t
*p_stream
, const es_format_t
*p_fmt
)
74 VLC_UNUSED(p_stream
); VLC_UNUSED(p_fmt
);
78 static void Del( sout_stream_t
*p_stream
, sout_stream_id_sys_t
*id
)
84 static int Send( sout_stream_t
*p_stream
, sout_stream_id_sys_t
*id
,
87 (void)p_stream
; (void)id
;
88 block_ChainRelease( p_buffer
);