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
6e9df1a6
Commit
6e9df1a6
authored
Aug 29, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sout_AccessOutNew: allow any VLC object type, not just sout instance
parent
631a4861
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
include/vlc_sout.h
include/vlc_sout.h
+9
-7
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+2
-1
No files found.
include/vlc_sout.h
View file @
6e9df1a6
...
...
@@ -97,7 +97,7 @@ struct sout_access_out_t
int
(
*
pf_seek
)(
sout_access_out_t
*
,
off_t
);
ssize_t
(
*
pf_read
)(
sout_access_out_t
*
,
block_t
*
);
ssize_t
(
*
pf_write
)(
sout_access_out_t
*
,
block_t
*
);
int
(
*
pf_control
)(
sout_access_out_t
*
,
int
,
va_list
);
int
(
*
pf_control
)(
sout_access_out_t
*
,
int
,
va_list
);
config_chain_t
*
p_cfg
;
};
...
...
@@ -107,12 +107,14 @@ enum access_out_query_e
ACCESS_OUT_CONTROLS_PACE
,
/* arg1=bool *, can fail (assume true) */
};
VLC_EXPORT
(
sout_access_out_t
*
,
sout_AccessOutNew
,
(
sout_instance_t
*
,
const
char
*
psz_access
,
const
char
*
psz_name
)
);
VLC_EXPORT
(
sout_access_out_t
*
,
sout_AccessOutNew
,
(
vlc_object_t
*
,
const
char
*
psz_access
,
const
char
*
psz_name
)
);
#define sout_AccessOutNew( obj, access, name ) \
sout_AccessOutNew( VLC_OBJECT(obj), access, name )
VLC_EXPORT
(
void
,
sout_AccessOutDelete
,
(
sout_access_out_t
*
)
);
VLC_EXPORT
(
int
,
sout_AccessOutSeek
,
(
sout_access_out_t
*
,
off_t
)
);
VLC_EXPORT
(
ssize_t
,
sout_AccessOutRead
,
(
sout_access_out_t
*
,
block_t
*
)
);
VLC_EXPORT
(
ssize_t
,
sout_AccessOutWrite
,
(
sout_access_out_t
*
,
block_t
*
)
);
VLC_EXPORT
(
int
,
sout_AccessOutControl
,
(
sout_access_out_t
*
,
int
,
...
)
);
VLC_EXPORT
(
int
,
sout_AccessOutControl
,
(
sout_access_out_t
*
,
int
,
...
)
);
static
inline
bool
sout_AccessOutCanControlPace
(
sout_access_out_t
*
p_ao
)
{
...
...
src/stream_output/stream_output.c
View file @
6e9df1a6
...
...
@@ -288,10 +288,11 @@ int sout_InputSendBuffer( sout_packetizer_input_t *p_input,
return
i_ret
;
}
#undef sout_AccessOutNew
/*****************************************************************************
* sout_AccessOutNew: allocate a new access out
*****************************************************************************/
sout_access_out_t
*
sout_AccessOutNew
(
sout_instance
_t
*
p_sout
,
sout_access_out_t
*
sout_AccessOutNew
(
vlc_object
_t
*
p_sout
,
const
char
*
psz_access
,
const
char
*
psz_name
)
{
static
const
char
typename
[]
=
"access out"
;
...
...
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