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
d6e99cf9
Commit
d6e99cf9
authored
Sep 05, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added "intf-change-vout" variable to warn about vout creation/destruction.
It is provided for convenience for interfaces.
parent
dbc2bb8a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
src/input/decoder.c
src/input/decoder.c
+2
-0
src/input/input.c
src/input/input.c
+2
-1
src/input/var.c
src/input/var.c
+3
-0
No files found.
src/input/decoder.c
View file @
d6e99cf9
...
@@ -1126,6 +1126,7 @@ static void DeleteDecoder( decoder_t * p_dec )
...
@@ -1126,6 +1126,7 @@ static void DeleteDecoder( decoder_t * p_dec )
/* We are about to die. Reattach video output to p_vlc. */
/* We are about to die. Reattach video output to p_vlc. */
vout_Request
(
p_dec
,
p_dec
->
p_owner
->
p_vout
,
NULL
);
vout_Request
(
p_dec
,
p_dec
->
p_owner
->
p_vout
,
NULL
);
var_SetBool
(
p_dec
->
p_owner
->
p_input
,
"intf-change-vout"
,
true
);
}
}
#ifdef ENABLE_SOUT
#ifdef ENABLE_SOUT
...
@@ -1306,6 +1307,7 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
...
@@ -1306,6 +1307,7 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
p_sys
->
p_vout
=
vout_Request
(
p_dec
,
p_sys
->
p_vout
,
p_sys
->
p_vout
=
vout_Request
(
p_dec
,
p_sys
->
p_vout
,
&
p_dec
->
fmt_out
.
video
);
&
p_dec
->
fmt_out
.
video
);
var_SetBool
(
p_sys
->
p_input
,
"intf-change-vout"
,
true
);
if
(
p_sys
->
p_vout
==
NULL
)
if
(
p_sys
->
p_vout
==
NULL
)
{
{
msg_Err
(
p_dec
,
"failed to create video output"
);
msg_Err
(
p_dec
,
"failed to create video output"
);
...
...
src/input/input.c
View file @
d6e99cf9
...
@@ -115,8 +115,9 @@ static void AppendAttachment( int *pi_attachment, input_attachment_t ***ppp_atta
...
@@ -115,8 +115,9 @@ static void AppendAttachment( int *pi_attachment, input_attachment_t ***ppp_atta
* - can-pause
* - can-pause
* - can-record (if a stream can be recorded while playing)
* - can-record (if a stream can be recorded while playing)
* - teletext-es to get the index of spu track that is teletext --1 if no teletext)
* - teletext-es to get the index of spu track that is teletext --1 if no teletext)
* * For intf callback upon changes
* * For intf callback upon changes
:
* - intf-change
* - intf-change
* - intf-change-vout for when a vout is created or destroyed
* - rate-change for when playback rate changes
* - rate-change for when playback rate changes
* TODO explain when Callback is called
* TODO explain when Callback is called
* TODO complete this list (?)
* TODO complete this list (?)
...
...
src/input/var.c
View file @
d6e99cf9
...
@@ -228,6 +228,9 @@ void input_ControlVarInit ( input_thread_t *p_input )
...
@@ -228,6 +228,9 @@ void input_ControlVarInit ( input_thread_t *p_input )
var_SetBool
(
p_input
,
"intf-change"
,
true
);
var_SetBool
(
p_input
,
"intf-change"
,
true
);
var_Create
(
p_input
,
"rate-change"
,
VLC_VAR_BOOL
);
var_Create
(
p_input
,
"rate-change"
,
VLC_VAR_BOOL
);
var_SetBool
(
p_input
,
"rate-change"
,
true
);
var_SetBool
(
p_input
,
"rate-change"
,
true
);
var_Create
(
p_input
,
"intf-change-vout"
,
VLC_VAR_BOOL
);
var_SetBool
(
p_input
,
"intf-change-vout"
,
true
);
}
}
/* Add all callbacks
/* Add all callbacks
...
...
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