Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f424ec54
Commit
f424ec54
authored
Sep 16, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old and broken playlist demuxer
Do not search for playlist
parent
261a9290
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
118 deletions
+1
-118
modules/demux/playlist/Modules.am
modules/demux/playlist/Modules.am
+0
-1
modules/demux/playlist/old.c
modules/demux/playlist/old.c
+0
-107
modules/demux/playlist/playlist.c
modules/demux/playlist/playlist.c
+0
-3
modules/demux/playlist/playlist.h
modules/demux/playlist/playlist.h
+1
-7
No files found.
modules/demux/playlist/Modules.am
View file @
f424ec54
SOURCES_playlist = \
playlist.c \
playlist.h \
old.c \
m3u.c \
b4s.c \
pls.c \
...
...
modules/demux/playlist/old.c
deleted
100644 → 0
View file @
261a9290
/*****************************************************************************
* old.c : Old playlist format import
*****************************************************************************
* Copyright (C) 2004 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
*
* 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
*****************************************************************************/
#include <vlc/vlc.h>
#include <vlc/input.h>
#include <vlc/intf.h>
#include "charset.h"
#define PLAYLIST_FILE_HEADER "# vlc playlist file version 0.5"
/*****************************************************************************
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
/*****************************************************************************
* Import_Old : main import function
*****************************************************************************/
int
E_
(
Import_Old
)(
vlc_object_t
*
p_this
)
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
uint8_t
*
p_peek
;
if
(
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
31
)
<
31
)
return
VLC_EGENERIC
;
if
(
strncmp
(
(
char
*
)
p_peek
,
PLAYLIST_FILE_HEADER
,
31
)
)
return
VLC_EGENERIC
;
msg_Dbg
(
p_demux
,
"found valid old playlist file"
);
p_demux
->
pf_control
=
Control
;
p_demux
->
pf_demux
=
Demux
;
return
VLC_SUCCESS
;
}
static
int
Demux
(
demux_t
*
p_demux
)
{
char
*
psz_line
;
/* Attach playlist and start reading data */
playlist_t
*
p_playlist
;
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_demux
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
!
p_playlist
)
{
msg_Err
(
p_demux
,
"cannot attach playlist"
);
return
VLC_EGENERIC
;
}
while
(
(
psz_line
=
stream_ReadLine
(
p_demux
->
s
)
)
!=
NULL
)
{
char
*
psz_unicode
;
if
(
(
psz_line
[
0
]
==
'#'
)
||
(
psz_line
[
0
]
==
'\r'
)
||
(
psz_line
[
0
]
==
'\n'
)
||
(
psz_line
[
0
]
==
(
char
)
0
)
)
{
continue
;
}
/* Remove end of line */
if
(
psz_line
[
strlen
(
psz_line
)
-
1
]
==
'\n'
||
psz_line
[
strlen
(
psz_line
)
-
1
]
==
'\r'
)
{
psz_line
[
strlen
(
psz_line
)
-
1
]
=
(
char
)
0
;
if
(
psz_line
[
strlen
(
psz_line
)
-
1
]
==
'\r'
)
psz_line
[
strlen
(
psz_line
)
-
1
]
=
(
char
)
0
;
}
psz_unicode
=
FromLocale
(
psz_line
);
// playlist_Add( p_playlist, psz_unicode, psz_unicode, PLAYLIST_APPEND,
// PLAYLIST_END );
free
(
psz_line
);
LocaleFree
(
psz_line
);
}
p_demux
->
b_die
=
VLC_TRUE
;
vlc_object_release
(
p_playlist
);
return
VLC_SUCCESS
;
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
return
VLC_EGENERIC
;
}
modules/demux/playlist/playlist.c
View file @
f424ec54
...
...
@@ -55,9 +55,6 @@ vlc_module_begin();
set_shortname
(
_
(
"Playlist"
)
);
set_description
(
_
(
"Playlist"
)
);
add_shortcut
(
"old-open"
);
set_capability
(
"demux2"
,
10
);
set_callbacks
(
E_
(
Import_Old
),
NULL
);
add_submodule
();
set_description
(
_
(
"M3U playlist import"
)
);
add_shortcut
(
"m3u-open"
);
...
...
modules/demux/playlist/playlist.h
View file @
f424ec54
...
...
@@ -70,13 +70,7 @@ void E_(Close_GVP) ( vlc_object_t * );
vlc_bool_t b_play; \
playlist_item_t *p_current, *p_item_in_category = NULL; \
input_item_t *p_input; \
playlist_t *p_playlist = (playlist_t *) vlc_object_find( p_demux, \
VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); \
if( !p_playlist ) \
{ \
msg_Err( p_demux, "can't find playlist" ); \
return VLC_EGENERIC; \
} \
playlist_t *p_playlist = pl_Yield( p_demux ); \
i_parent_id = var_CreateGetInteger( p_demux, "parent-item" ); \
if( i_parent_id > 0 ) \
{ \
...
...
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