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
c8a5be75
Commit
c8a5be75
authored
Aug 29, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ACCESS_OUT_CAN_CONTROL_PACE, fix AccessOutControl prototype
(My fault - fortunately, sout_AccessOutControl was unused)
parent
560ccaae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
6 deletions
+28
-6
include/vlc_sout.h
include/vlc_sout.h
+17
-3
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+11
-3
No files found.
include/vlc_sout.h
View file @
c8a5be75
/*****************************************************************************
/*****************************************************************************
* stream_output.h : stream output module
* stream_output.h : stream output module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-200
7
the VideoLAN team
* Copyright (C) 2002-200
8
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Laurent Aimar <fenrir@via.ecp.fr>
* Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
* Eric Petit <titer@videolan.org>
* Jean-Paul Saman <jpsaman #_at_# m2x.nl>
* Jean-Paul Saman <jpsaman #_at_# m2x.nl>
* Rémi Denis-Courmont
*
*
* This program is free software; you can redistribute it and/or modify
* 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
* it under the terms of the GNU General Public License as published by
...
@@ -102,12 +103,25 @@ struct sout_access_out_t
...
@@ -102,12 +103,25 @@ struct sout_access_out_t
sout_instance_t
*
p_sout
;
sout_instance_t
*
p_sout
;
};
};
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
,
(
sout_instance_t
*
,
const
char
*
psz_access
,
const
char
*
psz_name
)
);
VLC_EXPORT
(
void
,
sout_AccessOutDelete
,
(
sout_access_out_t
*
)
);
VLC_EXPORT
(
void
,
sout_AccessOutDelete
,
(
sout_access_out_t
*
)
);
VLC_EXPORT
(
int
,
sout_AccessOutSeek
,
(
sout_access_out_t
*
,
off_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_AccessOutRead
,
(
sout_access_out_t
*
,
block_t
*
)
);
VLC_EXPORT
(
ssize_t
,
sout_AccessOutWrite
,
(
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
,
va_list
)
);
VLC_EXPORT
(
int
,
sout_AccessOutControl
,(
sout_access_out_t
*
,
int
,
...
)
);
static
inline
bool
sout_AccessOutCanControlPace
(
sout_access_out_t
*
p_ao
)
{
bool
b
;
if
(
sout_AccessOutControl
(
p_ao
,
ACCESS_OUT_CONTROLS_PACE
,
&
b
)
)
return
true
;
return
b
;
}
/** Muxer structure */
/** Muxer structure */
struct
sout_mux_t
struct
sout_mux_t
...
...
src/stream_output/stream_output.c
View file @
c8a5be75
...
@@ -390,10 +390,18 @@ ssize_t sout_AccessOutWrite( sout_access_out_t *p_access, block_t *p_buffer )
...
@@ -390,10 +390,18 @@ ssize_t sout_AccessOutWrite( sout_access_out_t *p_access, block_t *p_buffer )
/**
/**
* sout_AccessOutControl
* sout_AccessOutControl
*/
*/
int
sout_AccessOutControl
(
sout_access_out_t
*
access
,
int
query
,
va_list
args
)
int
sout_AccessOutControl
(
sout_access_out_t
*
access
,
int
query
,
...
)
{
{
return
(
access
->
pf_control
)
?
access
->
pf_control
(
access
,
query
,
args
)
va_list
ap
;
:
VLC_EGENERIC
;
int
ret
;
va_start
(
ap
,
query
);
if
(
access
->
pf_control
)
ret
=
access
->
pf_control
(
access
,
query
,
ap
);
else
ret
=
VLC_EGENERIC
;
va_end
(
ap
);
return
ret
;
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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