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
a426e6ab
Commit
a426e6ab
authored
Jan 19, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input_GetVout and input_GetAout helpers
parent
45052c77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
include/vlc_input.h
include/vlc_input.h
+35
-0
No files found.
include/vlc_input.h
View file @
a426e6ab
...
@@ -536,6 +536,41 @@ static inline int input_AddSubtitle( input_thread_t *p_input, const char *psz_ur
...
@@ -536,6 +536,41 @@ static inline int input_AddSubtitle( input_thread_t *p_input, const char *psz_ur
return
input_Control
(
p_input
,
INPUT_ADD_SUBTITLE
,
psz_url
,
b_check_extension
);
return
input_Control
(
p_input
,
INPUT_ADD_SUBTITLE
,
psz_url
,
b_check_extension
);
}
}
/**
* Return one of the video output (if any). If possible, you should use
* INPUT_GET_VOUTS directly and process _all_ video outputs instead.
* @param p_input an input thread from which to get a video output
* @return NULL on error, or a video output thread pointer (which needs to be
* released with vlc_object_release()).
*/
static
inline
vout_thread_t
*
input_GetVout
(
input_thread_t
*
p_input
)
{
vout_thread_t
**
pp_vout
,
*
p_vout
;
unsigned
i_vout
;
if
(
input_Control
(
p_input
,
INPUT_GET_VOUTS
,
&
pp_vout
,
&
i_vout
)
)
return
NULL
;
for
(
unsigned
i
=
1
;
i
<
i_vout
;
i
++
)
vlc_object_release
(
(
vlc_object_t
*
)(
pp_vout
[
i
])
);
p_vout
=
(
i_vout
>=
1
)
?
pp_vout
[
0
]
:
NULL
;
free
(
pp_vout
);
return
p_vout
;
}
/**
* Return the audio output (if any) associated with an input.
* @param p_input an input thread
* @return NULL on error, or the audio output (which needs to be
* released with vlc_object_release()).
*/
static
inline
aout_instance_t
*
input_GetAout
(
input_thread_t
*
p_input
)
{
aout_instance_t
*
p_aout
;
return
input_Control
(
p_input
,
INPUT_GET_VOUTS
,
&
p_aout
)
?
NULL
:
p_aout
;
}
/* */
/* */
typedef
struct
input_clock_t
input_clock_t
;
typedef
struct
input_clock_t
input_clock_t
;
VLC_EXPORT
(
decoder_t
*
,
input_DecoderNew
,
(
input_thread_t
*
,
es_format_t
*
,
input_clock_t
*
,
sout_instance_t
*
)
);
VLC_EXPORT
(
decoder_t
*
,
input_DecoderNew
,
(
input_thread_t
*
,
es_format_t
*
,
input_clock_t
*
,
sout_instance_t
*
)
);
...
...
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