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
e4f5a0fe
Commit
e4f5a0fe
authored
Aug 01, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dummy: remove dummy (indeed) access, convert demux to access_demux
parent
e157f6ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
86 deletions
+3
-86
modules/misc/dummy/dummy.c
modules/misc/dummy/dummy.c
+1
-6
modules/misc/dummy/dummy.h
modules/misc/dummy/dummy.h
+0
-2
modules/misc/dummy/input.c
modules/misc/dummy/input.c
+2
-78
No files found.
modules/misc/dummy/dummy.c
View file @
e4f5a0fe
...
...
@@ -67,14 +67,9 @@ vlc_module_begin ()
add_category_hint
(
N_
(
"Interface"
),
NULL
,
false
)
add_bool
(
"dummy-quiet"
,
0
,
NULL
,
QUIET_TEXT
,
QUIET_LONGTEXT
,
false
)
#endif
add_submodule
()
set_description
(
N_
(
"Dummy access function"
)
)
set_capability
(
"access"
,
0
)
set_callbacks
(
OpenAccess
,
NULL
)
add_shortcut
(
"vlc"
)
add_submodule
()
set_description
(
N_
(
"Dummy demux function"
)
)
set_capability
(
"demux"
,
0
)
set_capability
(
"
access_
demux"
,
0
)
set_callbacks
(
OpenDemux
,
CloseDemux
)
add_shortcut
(
"vlc"
)
add_submodule
()
...
...
modules/misc/dummy/dummy.h
View file @
e4f5a0fe
...
...
@@ -26,8 +26,6 @@
*****************************************************************************/
int
OpenIntf
(
vlc_object_t
*
);
int
OpenAccess
(
vlc_object_t
*
);
int
OpenDemux
(
vlc_object_t
*
);
void
CloseDemux
(
vlc_object_t
*
);
...
...
modules/misc/dummy/input.c
View file @
e4f5a0fe
...
...
@@ -31,86 +31,11 @@
#include <vlc_common.h>
#include <vlc_interface.h>
#include <vlc_access.h>
#include <vlc_demux.h>
#include <vlc_charset.h>
#include "dummy.h"
/*****************************************************************************
* Access functions.
*****************************************************************************/
static
ssize_t
AccessRead
(
access_t
*
p_access
,
uint8_t
*
p
,
size_t
i_size
)
{
VLC_UNUSED
(
p_access
);
memset
(
p
,
0
,
i_size
);
return
i_size
;
}
static
int
AccessControl
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
bool
*
pb_bool
;
int64_t
*
pi_64
;
switch
(
i_query
)
{
/* */
case
ACCESS_CAN_SEEK
:
case
ACCESS_CAN_FASTSEEK
:
case
ACCESS_CAN_PAUSE
:
case
ACCESS_CAN_CONTROL_PACE
:
pb_bool
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
*
pb_bool
=
false
;
break
;
/* */
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
DEFAULT_PTS_DELAY
*
1000
;
break
;
/* */
case
ACCESS_SET_PAUSE_STATE
:
case
ACCESS_GET_TITLE_INFO
:
case
ACCESS_GET_META
:
case
ACCESS_SET_TITLE
:
case
ACCESS_SET_SEEKPOINT
:
return
VLC_EGENERIC
;
default:
msg_Err
(
p_access
,
"unimplemented query in control"
);
return
VLC_EGENERIC
;
}
return
VLC_SUCCESS
;
}
int
OpenAccess
(
vlc_object_t
*
p_this
)
{
access_t
*
p_access
=
(
access_t
*
)
p_this
;
/* Init p_access */
p_access
->
pf_read
=
AccessRead
;
p_access
->
pf_block
=
NULL
;
p_access
->
pf_seek
=
NULL
;
p_access
->
pf_control
=
AccessControl
;
p_access
->
info
.
i_update
=
0
;
p_access
->
info
.
i_size
=
0
;
p_access
->
info
.
i_pos
=
0
;
p_access
->
info
.
b_eof
=
false
;
p_access
->
info
.
i_title
=
0
;
p_access
->
info
.
i_seekpoint
=
0
;
p_access
->
p_sys
=
NULL
;
/* Force dummy demux plug-in */
free
(
p_access
->
psz_demux
);
p_access
->
psz_demux
=
strdup
(
"vlc"
);
return
VLC_SUCCESS
;
}
/*****************************************************************************
* Demux
*****************************************************************************/
static
int
DemuxControl
(
demux_t
*
,
int
,
va_list
);
static
int
DemuxNoOp
(
demux_t
*
demux
)
...
...
@@ -191,7 +116,6 @@ void CloseDemux ( vlc_object_t *p_this )
static
int
DemuxControl
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
return
demux_vaControlHelper
(
p_demux
->
s
,
0
,
0
,
0
,
1
,
i_query
,
args
);
(
void
)
p_demux
;
(
void
)
i_query
;
(
void
)
args
;
return
VLC_EGENERIC
;
}
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