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
960b7bb4
Commit
960b7bb4
authored
Mar 29, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: factor the Control() callback
parent
163b142d
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
7 additions
and
123 deletions
+7
-123
modules/demux/playlist/asx.c
modules/demux/playlist/asx.c
+0
-7
modules/demux/playlist/b4s.c
modules/demux/playlist/b4s.c
+0
-7
modules/demux/playlist/dvb.c
modules/demux/playlist/dvb.c
+0
-7
modules/demux/playlist/gvp.c
modules/demux/playlist/gvp.c
+0
-7
modules/demux/playlist/ifo.c
modules/demux/playlist/ifo.c
+0
-8
modules/demux/playlist/itml.c
modules/demux/playlist/itml.c
+0
-8
modules/demux/playlist/m3u.c
modules/demux/playlist/m3u.c
+0
-7
modules/demux/playlist/playlist.c
modules/demux/playlist/playlist.c
+6
-0
modules/demux/playlist/playlist.h
modules/demux/playlist/playlist.h
+1
-0
modules/demux/playlist/pls.c
modules/demux/playlist/pls.c
+0
-7
modules/demux/playlist/podcast.c
modules/demux/playlist/podcast.c
+0
-7
modules/demux/playlist/qtl.c
modules/demux/playlist/qtl.c
+0
-7
modules/demux/playlist/ram.c
modules/demux/playlist/ram.c
+0
-12
modules/demux/playlist/sgimb.c
modules/demux/playlist/sgimb.c
+0
-8
modules/demux/playlist/shoutcast.c
modules/demux/playlist/shoutcast.c
+0
-7
modules/demux/playlist/wpl.c
modules/demux/playlist/wpl.c
+0
-7
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+0
-8
modules/demux/playlist/zpl.c
modules/demux/playlist/zpl.c
+0
-9
No files found.
modules/demux/playlist/asx.c
View file @
960b7bb4
...
...
@@ -52,7 +52,6 @@ struct demux_sys_t
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
static
int
StoreString
(
demux_t
*
p_demux
,
char
**
ppsz_string
,
const
char
*
psz_source_start
,
...
...
@@ -772,9 +771,3 @@ static int Demux( demux_t *p_demux )
vlc_gc_decref
(
p_current_input
);
return
0
;
/* Needed for correct operation of go back */
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
modules/demux/playlist/b4s.c
View file @
960b7bb4
...
...
@@ -43,7 +43,6 @@ struct demux_sys_t
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
static
bool
IsWhitespace
(
const
char
*
psz_string
);
/*****************************************************************************
...
...
@@ -238,12 +237,6 @@ end:
return
i_ret
;
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
static
bool
IsWhitespace
(
const
char
*
psz_string
)
{
psz_string
+=
strspn
(
psz_string
,
"
\t\r\n
"
);
...
...
modules/demux/playlist/dvb.c
View file @
960b7bb4
...
...
@@ -43,7 +43,6 @@
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
static
int
ParseLine
(
char
*
,
char
**
,
char
***
,
int
*
);
...
...
@@ -313,9 +312,3 @@ static int ParseLine( char *psz_line, char **ppsz_name,
return
b_valid
;
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
modules/demux/playlist/gvp.c
View file @
960b7bb4
...
...
@@ -68,7 +68,6 @@ struct demux_sys_t
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
/*****************************************************************************
* Import_GVP: main import function
...
...
@@ -226,9 +225,3 @@ static int Demux( demux_t *p_demux )
return
0
;
/* Needed for correct operation of go back */
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
modules/demux/playlist/ifo.c
View file @
960b7bb4
...
...
@@ -39,7 +39,6 @@
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
DemuxDVD_VR
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
/*****************************************************************************
* Import_IFO: main import function
...
...
@@ -138,10 +137,3 @@ static int DemuxDVD_VR( demux_t *p_demux )
return
0
;
/* Needed for correct operation of go back */
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
modules/demux/playlist/itml.c
View file @
960b7bb4
...
...
@@ -43,7 +43,6 @@ struct demux_sys_t
int
i_ntracks
;
};
static
int
Control
(
demux_t
*
,
int
,
va_list
);
static
int
Demux
(
demux_t
*
);
/**
...
...
@@ -115,13 +114,6 @@ end:
return
0
;
}
/** \brief dummy function for demux callback interface */
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
/**
* \brief parse the root node of the playlist
*/
...
...
modules/demux/playlist/m3u.c
View file @
960b7bb4
...
...
@@ -46,7 +46,6 @@ struct demux_sys_t
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
static
void
parseEXTINF
(
char
*
psz_string
,
char
**
ppsz_artist
,
char
**
ppsz_name
,
int
*
pi_duration
);
static
bool
ContainsURL
(
demux_t
*
p_demux
);
...
...
@@ -275,12 +274,6 @@ static int Demux( demux_t *p_demux )
return
0
;
/* Needed for correct operation of go back */
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
static
void
parseEXTINF
(
char
*
psz_string
,
char
**
ppsz_artist
,
char
**
ppsz_name
,
int
*
pi_duration
)
{
...
...
modules/demux/playlist/playlist.c
View file @
960b7bb4
...
...
@@ -146,6 +146,12 @@ vlc_module_begin ()
set_callbacks
(
Import_ZPL
,
Close_ZPL
)
vlc_module_end
()
int
Control
(
demux_t
*
demux
,
int
query
,
va_list
args
)
{
(
void
)
demux
;
(
void
)
query
;
(
void
)
args
;
return
VLC_EGENERIC
;
}
input_item_t
*
GetCurrentItem
(
demux_t
*
p_demux
)
{
input_thread_t
*
p_input_thread
=
demux_GetParentInput
(
p_demux
);
...
...
modules/demux/playlist/playlist.h
View file @
960b7bb4
...
...
@@ -24,6 +24,7 @@
#include <vlc_input.h>
#include <vlc_playlist.h>
int
Control
(
demux_t
*
,
int
,
va_list
);
char
*
ProcessMRL
(
const
char
*
,
const
char
*
);
char
*
FindPrefix
(
demux_t
*
);
...
...
modules/demux/playlist/pls.c
View file @
960b7bb4
...
...
@@ -43,7 +43,6 @@ struct demux_sys_t
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
/*****************************************************************************
* Import_PLS: main import function
...
...
@@ -212,9 +211,3 @@ static int Demux( demux_t *p_demux )
vlc_gc_decref
(
p_current_input
);
return
0
;
/* Needed for correct operation of go back */
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
modules/demux/playlist/podcast.c
View file @
960b7bb4
...
...
@@ -38,7 +38,6 @@
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
static
mtime_t
strTimeToMTime
(
const
char
*
psz
);
/*****************************************************************************
...
...
@@ -324,12 +323,6 @@ error:
return
-
1
;
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
static
mtime_t
strTimeToMTime
(
const
char
*
psz
)
{
int
h
,
m
,
s
;
...
...
modules/demux/playlist/qtl.c
View file @
960b7bb4
...
...
@@ -73,7 +73,6 @@ const char* ppsz_loop[] = { "true", "false", "palindrome" };
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
/*****************************************************************************
* Import_QTL: main import function
...
...
@@ -266,9 +265,3 @@ error:
free
(
psz_mimetype
);
return
i_ret
;
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
modules/demux/playlist/ram.c
View file @
960b7bb4
...
...
@@ -63,7 +63,6 @@ struct demux_sys_t
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
static
void
ParseClipInfo
(
const
char
*
psz_clipinfo
,
char
**
ppsz_artist
,
char
**
ppsz_title
,
char
**
ppsz_album
,
char
**
ppsz_genre
,
char
**
ppsz_year
,
char
**
ppsz_cdnum
,
char
**
ppsz_comments
);
...
...
@@ -386,17 +385,6 @@ static int Demux( demux_t *p_demux )
return
0
;
/* Needed for correct operation of go back */
}
/**
* @param p_demux: This object
* @param i_query:
* @param args: List of arguments
*/
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
/**
* Parses clipinfo parameter
* @param psz_clipinfo: string containing the clipinfo parameter along with quotes
...
...
modules/demux/playlist/sgimb.c
View file @
960b7bb4
...
...
@@ -130,7 +130,6 @@ struct demux_sys_t
};
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
/*****************************************************************************
* Activate: initializes m3u demux structures
...
...
@@ -407,10 +406,3 @@ static int Demux ( demux_t *p_demux )
vlc_gc_decref
(
p_current_input
);
return
0
;
/* Needed for correct operation of go back */
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
modules/demux/playlist/shoutcast.c
View file @
960b7bb4
...
...
@@ -45,7 +45,6 @@
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
static
int
DemuxGenre
(
demux_t
*
p_demux
,
xml_reader_t
*
p_xml_reader
,
input_item_node_t
*
p_input_node
);
...
...
@@ -351,9 +350,3 @@ static int DemuxStation( demux_t *p_demux, xml_reader_t *p_xml_reader,
/* FIXME: leaks on missing ENDELEMENT? */
return
0
;
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
modules/demux/playlist/wpl.c
View file @
960b7bb4
...
...
@@ -42,7 +42,6 @@ struct demux_sys_t
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
/*****************************************************************************
* Import_WPL: main import function
...
...
@@ -117,9 +116,3 @@ static int Demux( demux_t *p_demux )
var_Destroy
(
p_demux
,
"wpl-extvlcopt"
);
return
0
;
/* Needed for correct operation of go back */
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
modules/demux/playlist/xspf.c
View file @
960b7bb4
...
...
@@ -77,7 +77,6 @@ struct demux_sys_t
char
*
psz_base
;
};
static
int
Control
(
demux_t
*
,
int
,
va_list
);
static
int
Demux
(
demux_t
*
);
/**
...
...
@@ -159,13 +158,6 @@ end:
return
i_ret
;
/* Needed for correct operation of go back */
}
/** \brief dummy function for demux callback interface */
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
static
const
xml_elem_hnd_t
*
get_handler
(
const
xml_elem_hnd_t
*
tab
,
size_t
n
,
const
char
*
name
)
{
for
(
size_t
i
=
0
;
i
<
n
/
sizeof
(
xml_elem_hnd_t
);
i
++
)
...
...
modules/demux/playlist/zpl.c
View file @
960b7bb4
...
...
@@ -43,7 +43,6 @@ struct demux_sys_t
* Local prototypes
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
);
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
);
static
char
*
ParseTabValue
(
char
*
psz_string
);
/*****************************************************************************
...
...
@@ -209,12 +208,6 @@ static int Demux( demux_t *p_demux )
return
0
;
/* Needed for correct operation of go back */
}
static
int
Control
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
i_query
);
VLC_UNUSED
(
args
);
return
VLC_EGENERIC
;
}
static
char
*
ParseTabValue
(
char
*
psz_string
)
{
int
i_len
=
strlen
(
psz_string
);
...
...
@@ -228,5 +221,3 @@ static char* ParseTabValue(char* psz_string)
return
psz_value
;
}
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