Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9d73a00b
Commit
9d73a00b
authored
Mar 13, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove WPL module
parent
2848264a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
130 deletions
+0
-130
modules/demux/Makefile.am
modules/demux/Makefile.am
+0
-1
modules/demux/playlist/playlist.c
modules/demux/playlist/playlist.c
+0
-5
modules/demux/playlist/wpl.c
modules/demux/playlist/wpl.c
+0
-124
No files found.
modules/demux/Makefile.am
View file @
9d73a00b
...
@@ -220,7 +220,6 @@ libplaylist_plugin_la_SOURCES = \
...
@@ -220,7 +220,6 @@ libplaylist_plugin_la_SOURCES = \
demux/playlist/ram.c
\
demux/playlist/ram.c
\
demux/playlist/sgimb.c
\
demux/playlist/sgimb.c
\
demux/playlist/shoutcast.c
\
demux/playlist/shoutcast.c
\
demux/playlist/wpl.c
\
demux/playlist/xspf.c
\
demux/playlist/xspf.c
\
demux/playlist/directory.c
\
demux/playlist/directory.c
\
demux/playlist/playlist.c demux/playlist/playlist.h
demux/playlist/playlist.c demux/playlist/playlist.h
...
...
modules/demux/playlist/playlist.c
View file @
9d73a00b
...
@@ -135,11 +135,6 @@ vlc_module_begin ()
...
@@ -135,11 +135,6 @@ vlc_module_begin ()
add_shortcut
(
"playlist"
,
"itml"
)
add_shortcut
(
"playlist"
,
"itml"
)
set_capability
(
"demux"
,
10
)
set_capability
(
"demux"
,
10
)
set_callbacks
(
Import_iTML
,
Close_iTML
)
set_callbacks
(
Import_iTML
,
Close_iTML
)
add_submodule
()
set_description
(
N_
(
"WPL playlist import"
)
)
add_shortcut
(
"playlist"
,
"wpl"
)
set_capability
(
"demux"
,
10
)
set_callbacks
(
Import_WPL
,
Close_WPL
)
add_submodule
()
add_submodule
()
set_description
(
N_
(
"Directory import"
)
)
set_description
(
N_
(
"Directory import"
)
)
add_shortcut
(
"playlist"
,
"directory"
)
add_shortcut
(
"playlist"
,
"directory"
)
...
...
modules/demux/playlist/wpl.c
deleted
100644 → 0
View file @
2848264a
/*****************************************************************************
* wpl.c : WPL playlist format import
*****************************************************************************
* Copyright (C) 2009 the VideoLAN team
*
* Authors: Su Heaven <suheaven@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#include <vlc_demux.h>
#include <vlc_strings.h>
#include "playlist.h"
struct
demux_sys_t
{
char
*
psz_prefix
;
};
/*****************************************************************************
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
/*****************************************************************************
* Import_WPL: main import function
*****************************************************************************/
int
Import_WPL
(
vlc_object_t
*
p_this
)
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
if
(
!
(
demux_IsPathExtension
(
p_demux
,
".wpl"
)
||
demux_IsForced
(
p_demux
,
"wpl"
)))
return
VLC_EGENERIC
;
STANDARD_DEMUX_INIT_MSG
(
"found valid WPL playlist"
);
p_demux
->
p_sys
->
psz_prefix
=
FindPrefix
(
p_demux
);
return
VLC_SUCCESS
;
}
/*****************************************************************************
* Deactivate: frees unused data
*****************************************************************************/
void
Close_WPL
(
vlc_object_t
*
p_this
)
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
free
(
p_demux
->
p_sys
->
psz_prefix
);
free
(
p_demux
->
p_sys
);
}
static
int
Demux
(
demux_t
*
p_demux
)
{
char
*
psz_line
;
input_item_t
*
p_current_input
=
GetCurrentItem
(
p_demux
);
input_item_node_t
*
p_subitems
=
input_item_node_Create
(
p_current_input
);
while
(
(
psz_line
=
stream_ReadLine
(
p_demux
->
s
))
)
{
char
*
psz_parse
=
psz_line
;
/* Skip leading tabs and spaces */
while
(
*
psz_parse
==
' '
||
*
psz_parse
==
'\t'
||
*
psz_parse
==
'\n'
||
*
psz_parse
==
'\r'
)
psz_parse
++
;
/* if the line is the uri of the media item */
if
(
!
strncasecmp
(
psz_parse
,
"<media src=
\"
"
,
strlen
(
"<media src=
\"
"
)
)
)
{
char
*
psz_uri
=
psz_parse
+
strlen
(
"<media src=
\"
"
);
psz_parse
=
strchr
(
psz_uri
,
'"'
);
if
(
psz_parse
!=
NULL
)
{
*
psz_parse
=
'\0'
;
resolve_xml_special_chars
(
psz_uri
);
psz_uri
=
ProcessMRL
(
psz_uri
,
p_demux
->
p_sys
->
psz_prefix
);
if
(
psz_uri
!=
NULL
)
{
input_item_t
*
p_input
;
p_input
=
input_item_NewExt
(
psz_uri
,
psz_uri
,
0
,
NULL
,
0
,
-
1
);
input_item_node_AppendItem
(
p_subitems
,
p_input
);
vlc_gc_decref
(
p_input
);
free
(
psz_uri
);
}
}
}
/* Fetch another line */
free
(
psz_line
);
}
input_item_node_PostAndDelete
(
p_subitems
);
vlc_gc_decref
(
p_current_input
);
var_Destroy
(
p_demux
,
"wpl-extvlcopt"
);
return
0
;
/* Needed for correct operation of go back */
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment