Commit 163b142d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: remove no-op pf_deactivate functions

parent 01985075
...@@ -51,20 +51,16 @@ static bool IsWhitespace( const char *psz_string ); ...@@ -51,20 +51,16 @@ static bool IsWhitespace( const char *psz_string );
*****************************************************************************/ *****************************************************************************/
int Import_B4S( vlc_object_t *p_this ) int Import_B4S( vlc_object_t *p_this )
{ {
DEMUX_BY_EXTENSION_OR_FORCED_MSG( ".b4s", "b4s-open", demux_t *demux = (demux_t *)p_this;
"using B4S playlist reader" );
return VLC_SUCCESS;
}
/***************************************************************************** if( !demux_IsPathExtension( demux, ".b4s" )
* Deactivate: frees unused data && !demux_IsForced( demux, "b4s-open" ) )
*****************************************************************************/ return VLC_EGENERIC;
void Close_B4S( vlc_object_t *p_this )
{ demux->pf_demux = Demux;
demux_t *p_demux = (demux_t *)p_this; demux->pf_control = Control;
demux_sys_t *p_sys = p_demux->p_sys;
free( p_sys ); return VLC_SUCCESS;
} }
static int Demux( demux_t *p_demux ) static int Demux( demux_t *p_demux )
......
...@@ -85,14 +85,6 @@ int Import_DVB( vlc_object_t *p_this ) ...@@ -85,14 +85,6 @@ int Import_DVB( vlc_object_t *p_this )
return VLC_SUCCESS; return VLC_SUCCESS;
} }
/*****************************************************************************
* Deactivate: frees unused data
*****************************************************************************/
void Close_DVB( vlc_object_t *p_this )
{
VLC_UNUSED(p_this);
}
/***************************************************************************** /*****************************************************************************
* Demux: The important stuff * Demux: The important stuff
*****************************************************************************/ *****************************************************************************/
......
...@@ -93,14 +93,6 @@ int Import_IFO( vlc_object_t *p_this ) ...@@ -93,14 +93,6 @@ int Import_IFO( vlc_object_t *p_this )
return VLC_SUCCESS; return VLC_SUCCESS;
} }
/*****************************************************************************
* Deactivate: frees unused data
*****************************************************************************/
void Close_IFO( vlc_object_t *p_this )
{
VLC_UNUSED(p_this);
}
static int Demux( demux_t *p_demux ) static int Demux( demux_t *p_demux )
{ {
char *psz_url, *psz_dir; char *psz_url, *psz_dir;
......
...@@ -81,17 +81,17 @@ vlc_module_begin () ...@@ -81,17 +81,17 @@ vlc_module_begin ()
set_description( N_("B4S playlist import") ) set_description( N_("B4S playlist import") )
add_shortcut( "playlist", "b4s-open", "shout-b4s" ) add_shortcut( "playlist", "b4s-open", "shout-b4s" )
set_capability( "demux", 10 ) set_capability( "demux", 10 )
set_callbacks( Import_B4S, Close_B4S ) set_callbacks( Import_B4S, NULL )
add_submodule () add_submodule ()
set_description( N_("DVB playlist import") ) set_description( N_("DVB playlist import") )
add_shortcut( "playlist", "dvb-open" ) add_shortcut( "playlist", "dvb-open" )
set_capability( "demux", 10 ) set_capability( "demux", 10 )
set_callbacks( Import_DVB, Close_DVB ) set_callbacks( Import_DVB, NULL )
add_submodule () add_submodule ()
set_description( N_("Podcast parser") ) set_description( N_("Podcast parser") )
add_shortcut( "playlist", "podcast" ) add_shortcut( "playlist", "podcast" )
set_capability( "demux", 10 ) set_capability( "demux", 10 )
set_callbacks( Import_podcast, Close_podcast ) set_callbacks( Import_podcast, NULL )
add_submodule () add_submodule ()
set_description( N_("XSPF playlist import") ) set_description( N_("XSPF playlist import") )
add_shortcut( "playlist", "xspf-open" ) add_shortcut( "playlist", "xspf-open" )
...@@ -101,7 +101,7 @@ vlc_module_begin () ...@@ -101,7 +101,7 @@ vlc_module_begin ()
set_description( N_("New winamp 5.2 shoutcast import") ) set_description( N_("New winamp 5.2 shoutcast import") )
add_shortcut( "playlist", "shout-winamp" ) add_shortcut( "playlist", "shout-winamp" )
set_capability( "demux", 10 ) set_capability( "demux", 10 )
set_callbacks( Import_Shoutcast, Close_Shoutcast ) set_callbacks( Import_Shoutcast, NULL )
add_bool( "shoutcast-show-adult", false, add_bool( "shoutcast-show-adult", false,
SHOW_ADULT_TEXT, SHOW_ADULT_LONGTEXT, false ) SHOW_ADULT_TEXT, SHOW_ADULT_LONGTEXT, false )
add_submodule () add_submodule ()
...@@ -118,17 +118,17 @@ vlc_module_begin () ...@@ -118,17 +118,17 @@ vlc_module_begin ()
set_description( N_("QuickTime Media Link importer") ) set_description( N_("QuickTime Media Link importer") )
add_shortcut( "playlist", "qtl" ) add_shortcut( "playlist", "qtl" )
set_capability( "demux", 10 ) set_capability( "demux", 10 )
set_callbacks( Import_QTL, Close_QTL ) set_callbacks( Import_QTL, NULL )
add_submodule () add_submodule ()
set_description( N_("Google Video Playlist importer") ) set_description( N_("Google Video Playlist importer") )
add_shortcut( "playlist", "gvp" ) add_shortcut( "playlist", "gvp" )
set_capability( "demux", 10 ) set_capability( "demux", 10 )
set_callbacks( Import_GVP, Close_GVP ) set_callbacks( Import_GVP, Close_GVP )
add_submodule () add_submodule ()
set_description( N_("Dummy ifo demux") ) set_description( N_("Dummy IFO demux") )
add_shortcut( "playlist" ) add_shortcut( "playlist" )
set_capability( "demux", 12 ) set_capability( "demux", 12 )
set_callbacks( Import_IFO, Close_IFO ) set_callbacks( Import_IFO, NULL )
add_submodule () add_submodule ()
set_description( N_("iTunes Music Library importer") ) set_description( N_("iTunes Music Library importer") )
add_shortcut( "playlist", "itml" ) add_shortcut( "playlist", "itml" )
......
...@@ -42,19 +42,15 @@ int Import_PLS ( vlc_object_t * ); ...@@ -42,19 +42,15 @@ int Import_PLS ( vlc_object_t * );
void Close_PLS ( vlc_object_t * ); void Close_PLS ( vlc_object_t * );
int Import_B4S ( vlc_object_t * ); int Import_B4S ( vlc_object_t * );
void Close_B4S ( vlc_object_t * );
int Import_DVB ( vlc_object_t * ); int Import_DVB ( vlc_object_t * );
void Close_DVB ( vlc_object_t * );
int Import_podcast ( vlc_object_t * ); int Import_podcast ( vlc_object_t * );
void Close_podcast ( vlc_object_t * );
int Import_xspf ( vlc_object_t * ); int Import_xspf ( vlc_object_t * );
void Close_xspf ( vlc_object_t * ); void Close_xspf ( vlc_object_t * );
int Import_Shoutcast ( vlc_object_t * ); int Import_Shoutcast ( vlc_object_t * );
void Close_Shoutcast ( vlc_object_t * );
int Import_ASX ( vlc_object_t * ); int Import_ASX ( vlc_object_t * );
void Close_ASX ( vlc_object_t * ); void Close_ASX ( vlc_object_t * );
...@@ -63,7 +59,6 @@ int Import_SGIMB ( vlc_object_t * ); ...@@ -63,7 +59,6 @@ int Import_SGIMB ( vlc_object_t * );
void Close_SGIMB ( vlc_object_t * ); void Close_SGIMB ( vlc_object_t * );
int Import_QTL ( vlc_object_t * ); int Import_QTL ( vlc_object_t * );
void Close_QTL ( vlc_object_t * );
int Import_GVP ( vlc_object_t * ); int Import_GVP ( vlc_object_t * );
void Close_GVP ( vlc_object_t * ); void Close_GVP ( vlc_object_t * );
......
...@@ -58,14 +58,6 @@ int Import_podcast( vlc_object_t *p_this ) ...@@ -58,14 +58,6 @@ int Import_podcast( vlc_object_t *p_this )
return VLC_SUCCESS; return VLC_SUCCESS;
} }
/*****************************************************************************
* Deactivate: frees unused data
*****************************************************************************/
void Close_podcast( vlc_object_t *p_this )
{
(void)p_this;
}
/* "specs" : http://phobos.apple.com/static/iTunesRSS.html */ /* "specs" : http://phobos.apple.com/static/iTunesRSS.html */
static int Demux( demux_t *p_demux ) static int Demux( demux_t *p_demux )
{ {
......
...@@ -92,14 +92,6 @@ int Import_QTL( vlc_object_t *p_this ) ...@@ -92,14 +92,6 @@ int Import_QTL( vlc_object_t *p_this )
return VLC_SUCCESS; return VLC_SUCCESS;
} }
/*****************************************************************************
* Deactivate: frees unused data
*****************************************************************************/
void Close_QTL( vlc_object_t *p_this )
{
(void)p_this;
}
static int Demux( demux_t *p_demux ) static int Demux( demux_t *p_demux )
{ {
xml_reader_t *p_xml_reader; xml_reader_t *p_xml_reader;
......
...@@ -69,14 +69,6 @@ int Import_Shoutcast( vlc_object_t *p_this ) ...@@ -69,14 +69,6 @@ int Import_Shoutcast( vlc_object_t *p_this )
return VLC_SUCCESS; return VLC_SUCCESS;
} }
/*****************************************************************************
* Deactivate: frees unused data
*****************************************************************************/
void Close_Shoutcast( vlc_object_t *p_this )
{
(void)p_this;
}
static int Demux( demux_t *p_demux ) static int Demux( demux_t *p_demux )
{ {
xml_reader_t *p_xml_reader = NULL; xml_reader_t *p_xml_reader = NULL;
......
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