Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
890a4fb7
Commit
890a4fb7
authored
Feb 10, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pf_control to access_output
parent
31456021
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
include/vlc_sout.h
include/vlc_sout.h
+6
-5
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+11
-1
No files found.
include/vlc_sout.h
View file @
890a4fb7
/*****************************************************************************
* stream_output.h : stream output module
*****************************************************************************
* Copyright (C) 2002-200
5
the VideoLAN team
* Copyright (C) 2002-200
7
the VideoLAN team
* $Id$
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -69,11 +69,7 @@ struct sout_access_out_t
VLC_COMMON_MEMBERS
module_t
*
p_module
;
sout_instance_t
*
p_sout
;
char
*
psz_access
;
config_chain_t
*
p_cfg
;
int
i_writes
;
/** Local counter reset each time it is transferred to stats */
...
...
@@ -84,6 +80,10 @@ struct sout_access_out_t
int
(
*
pf_seek
)(
sout_access_out_t
*
,
off_t
);
int
(
*
pf_read
)(
sout_access_out_t
*
,
block_t
*
);
int
(
*
pf_write
)(
sout_access_out_t
*
,
block_t
*
);
int
(
*
pf_control
)(
sout_access_out_t
*
,
int
,
va_list
);
config_chain_t
*
p_cfg
;
sout_instance_t
*
p_sout
;
};
VLC_EXPORT
(
sout_access_out_t
*
,
sout_AccessOutNew
,
(
sout_instance_t
*
,
char
*
psz_access
,
char
*
psz_name
)
);
...
...
@@ -91,6 +91,7 @@ VLC_EXPORT( void, sout_AccessOutDelete, ( sout_access_out_t * ) );
VLC_EXPORT
(
int
,
sout_AccessOutSeek
,
(
sout_access_out_t
*
,
off_t
)
);
VLC_EXPORT
(
int
,
sout_AccessOutRead
,
(
sout_access_out_t
*
,
block_t
*
)
);
VLC_EXPORT
(
int
,
sout_AccessOutWrite
,
(
sout_access_out_t
*
,
block_t
*
)
);
VLC_EXPORT
(
int
,
sout_AccessOutControl
,(
sout_access_out_t
*
,
int
,
va_list
)
);
/** Muxer structure */
struct
sout_mux_t
...
...
src/stream_output/stream_output.c
View file @
890a4fb7
/*****************************************************************************
* stream_output.c : stream output module
*****************************************************************************
* Copyright (C) 2002-200
4
the VideoLAN team
* Copyright (C) 2002-200
7
the VideoLAN team
* $Id$
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -299,6 +299,7 @@ sout_access_out_t *sout_AccessOutNew( sout_instance_t *p_sout,
p_access
->
pf_seek
=
NULL
;
p_access
->
pf_read
=
NULL
;
p_access
->
pf_write
=
NULL
;
p_access
->
pf_control
=
NULL
;
p_access
->
p_module
=
NULL
;
p_access
->
i_writes
=
0
;
...
...
@@ -385,6 +386,15 @@ int sout_AccessOutWrite( sout_access_out_t *p_access, block_t *p_buffer )
return
p_access
->
pf_write
(
p_access
,
p_buffer
);
}
/**
* sout_AccessOutControl
*/
int
sout_AccessOutControl
(
sout_access_out_t
*
access
,
int
query
,
va_list
args
)
{
return
(
access
->
pf_control
)
?
access
->
pf_control
(
access
,
query
,
args
)
:
VLC_EGENERIC
;
}
/*****************************************************************************
* sout_MuxNew: create a new mux
*****************************************************************************/
...
...
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