diff options
| author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 19:04:47 +0100 |
|---|---|---|
| committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 19:04:47 +0100 |
| commit | bebea7e1e218eed9e72dac3c7c2934f16c96f4a4 (patch) | |
| tree | 71f2cb804b77ac246d3d166d358b01154d12622e /src/libsputext | |
| parent | f7cbfdf9575df64a5ba6f594912ae18c45a1058e (diff) | |
| download | xine-lib-bebea7e1e218eed9e72dac3c7c2934f16c96f4a4.tar.gz xine-lib-bebea7e1e218eed9e72dac3c7c2934f16c96f4a4.tar.bz2 | |
Transform get_extensions and get_mimetypes into strings.
Please note that this commit temporarily breaks building.
Diffstat (limited to 'src/libsputext')
| -rw-r--r-- | src/libsputext/demux_sputext.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/libsputext/demux_sputext.c b/src/libsputext/demux_sputext.c index 5f8ea103d..0c9124786 100644 --- a/src/libsputext/demux_sputext.c +++ b/src/libsputext/demux_sputext.c @@ -1448,17 +1448,6 @@ static demux_plugin_t *open_demux_plugin (demux_class_t *class_gen, xine_stream_ return NULL; } -static const char *get_demux_extensions (demux_class_t *this_gen) { - return "asc txt sub srt smi ssa"; -} - -static const char *get_demux_mimetypes (demux_class_t *this_gen) { - return NULL; - - /* do not report this mimetype, it might confuse browsers. */ - /* "text/plain: asc txt sub srt: VIDEO subtitles;" */ -} - static void config_timeout_cb(void *this_gen, xine_cfg_entry_t *entry) { demux_sputext_class_t *this = (demux_sputext_class_t *)this_gen; @@ -1476,8 +1465,10 @@ static void *init_sputext_demux_class (xine_t *xine, void *data) { this->demux_class.open_plugin = open_demux_plugin; this->demux_class.description = N_("sputext demuxer plugin"); this->demux_class.identifier = "sputext"; - this->demux_class.get_mimetypes = get_demux_mimetypes; - this->demux_class.get_extensions = get_demux_extensions; + /* do not report this mimetype, it might confuse browsers. */ + /* "text/plain: asc txt sub srt: VIDEO subtitles;" */ + this->demux_class.mimetypes = NULL; + this->demux_class.extensions = "asc txt sub srt smi ssa"; this->demux_class.dispose = default_demux_class_dispose; /* |
