Commit c7412bad authored by François Cartegnie's avatar François Cartegnie 🤞

codec: webvtt: missing ifdef for sout

parent fbfaf502
......@@ -231,9 +231,11 @@ codec_LTLIBRARIES += libttml_plugin.la
libwebvtt_plugin_la_SOURCES = codec/webvtt/subsvtt.c \
codec/webvtt/webvtt.c \
codec/webvtt/webvtt.h \
codec/webvtt/encvtt.c \
demux/webvtt.c \
demux/mp4/minibox.h
if ENABLE_SOUT
libwebvtt_plugin_la_SOURCES += codec/webvtt/encvtt.c
endif
codec_LTLIBRARIES += libwebvtt_plugin.la
if ENABLE_CSS
# dependency: we need grammar build first
......
......@@ -58,11 +58,13 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INPUT_DEMUX )
set_callbacks( OpenDemuxStream, CloseDemux )
add_shortcut( "webvttstream" )
#ifdef ENABLE_SOUT
add_submodule()
set_description( "WEBVTT text encoder" )
set_capability( "encoder", 101 )
set_subcategory( SUBCAT_INPUT_SCODEC )
set_callbacks( OpenEncoder, CloseEncoder )
#endif
vlc_module_end ()
struct webvtt_text_parser_t
......
......@@ -27,8 +27,10 @@ int OpenDemux ( vlc_object_t * );
int OpenDemuxStream (vlc_object_t *);
void CloseDemux ( vlc_object_t * );
#ifdef ENABLE_SOUT
int OpenEncoder ( vlc_object_t * );
void CloseEncoder ( vlc_object_t * );
#endif
typedef struct webvtt_text_parser_t webvtt_text_parser_t;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment