int Import_ASX( vlc_object_t *p_this ) { demux_t *p_demux = (demux_t *)p_this; if( demux_IsPathExtension( p_demux, ".asx" ) || demux_IsPathExtension( p_demux, ".wax" ) || demux_IsPathExtension( p_demux, ".wvx" ) || ( ( CheckContentType( p_demux->s, "video/x-ms-asf" ) || CheckContentType( p_demux->s, "audio/x-ms-wax" ) ) && PeekASX( p_demux ) ) || demux_IsForced( p_demux, "asx-open" ) ) { STANDARD_DEMUX_INIT_MSG( "found valid ASX playlist" ); return VLC_SUCCESS; } else return VLC_EGENERIC; }
int Import_ASX( vlc_object_t *p_this ) { demux_t *p_demux = (demux_t *)p_this; CHECK_FILE(); if( demux_IsPathExtension( p_demux, ".asx" ) || demux_IsPathExtension( p_demux, ".wax" ) || demux_IsPathExtension( p_demux, ".wvx" ) || ( ( CheckContentType( p_demux->s, "video/x-ms-asf" ) || CheckContentType( p_demux->s, "audio/x-ms-wax" ) ) && PeekASX( p_demux ) ) || demux_IsForced( p_demux, "asx-open" ) ) { msg_Dbg( p_demux, "found valid ASX playlist" ); } else return VLC_EGENERIC; p_demux->pf_control = Control; p_demux->pf_demux = Demux; return VLC_SUCCESS; }