Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
a61cb21f
Commit
a61cb21f
authored
May 23, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed vout reuse regression.
parent
3fd7fd49
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
18 deletions
+25
-18
include/vlc_vout.h
include/vlc_vout.h
+1
-0
src/audio_output/input.c
src/audio_output/input.c
+5
-4
src/input/resource.c
src/input/resource.c
+10
-8
src/video_output/video_output.c
src/video_output/video_output.c
+9
-6
No files found.
include/vlc_vout.h
View file @
a61cb21f
...
...
@@ -53,6 +53,7 @@
typedef
struct
{
vout_thread_t
*
vout
;
vlc_object_t
*
input
;
bool
change_fmt
;
const
video_format_t
*
fmt
;
unsigned
dpb_size
;
}
vout_configuration_t
;
...
...
src/audio_output/input.c
View file @
a61cb21f
...
...
@@ -816,10 +816,11 @@ static vout_thread_t *RequestVout( void *p_private,
aout_instance_t
*
p_aout
=
p_private
;
VLC_UNUSED
(
b_recycle
);
vout_configuration_t
cfg
=
{
.
vout
=
p_vout
,
.
input
=
NULL
,
.
fmt
=
p_fmt
,
.
dpb_size
=
1
,
.
vout
=
p_vout
,
.
input
=
NULL
,
.
change_fmt
=
true
,
.
fmt
=
p_fmt
,
.
dpb_size
=
1
,
};
return
vout_Request
(
p_aout
,
&
cfg
);
}
...
...
src/input/resource.c
View file @
a61cb21f
...
...
@@ -244,10 +244,11 @@ static vout_thread_t *RequestVout( input_resource_t *p_resource,
/* */
vout_configuration_t
cfg
=
{
.
vout
=
p_vout
,
.
input
=
VLC_OBJECT
(
p_resource
->
p_input
),
.
fmt
=
p_fmt
,
.
dpb_size
=
dpb_size
,
.
vout
=
p_vout
,
.
input
=
VLC_OBJECT
(
p_resource
->
p_input
),
.
change_fmt
=
true
,
.
fmt
=
p_fmt
,
.
dpb_size
=
dpb_size
,
};
p_vout
=
vout_Request
(
p_resource
->
p_input
,
&
cfg
);
if
(
!
p_vout
)
...
...
@@ -283,10 +284,11 @@ static vout_thread_t *RequestVout( input_resource_t *p_resource,
vout_FlushSubpictureChannel
(
p_vout
,
-
1
);
vout_configuration_t
cfg
=
{
.
vout
=
p_vout
,
.
input
=
NULL
,
.
fmt
=
p_fmt
,
.
dpb_size
=
0
,
.
vout
=
p_vout
,
.
input
=
NULL
,
.
change_fmt
=
false
,
.
fmt
=
NULL
,
.
dpb_size
=
0
,
};
p_resource
->
p_vout_free
=
vout_Request
(
p_resource
->
p_input
,
&
cfg
);
}
...
...
src/video_output/video_output.c
View file @
a61cb21f
...
...
@@ -178,7 +178,7 @@ vout_thread_t *(vout_Request)(vlc_object_t *object,
const
vout_configuration_t
*
cfg
)
{
vout_thread_t
*
vout
=
cfg
->
vout
;
if
(
!
cfg
->
fmt
)
{
if
(
cfg
->
change_fmt
&&
!
cfg
->
fmt
)
{
if
(
vout
)
vout_CloseAndRelease
(
vout
);
return
NULL
;
...
...
@@ -197,12 +197,15 @@ vout_thread_t *(vout_Request)(vlc_object_t *object,
spu_Attach
(
vout
->
p
->
p_spu
,
vout
->
p
->
input
,
true
);
}
vout_control_cmd_t
cmd
;
vout_control_cmd_Init
(
&
cmd
,
VOUT_CONTROL_REINIT
);
cmd
.
u
.
cfg
=
cfg
;
if
(
cfg
->
change_fmt
)
{
vout_control_cmd_t
cmd
;
vout_control_cmd_Init
(
&
cmd
,
VOUT_CONTROL_REINIT
);
cmd
.
u
.
cfg
=
cfg
;
vout_control_Push
(
&
vout
->
p
->
control
,
&
cmd
);
vout_control_WaitEmpty
(
&
vout
->
p
->
control
);
}
vout_control_Push
(
&
vout
->
p
->
control
,
&
cmd
);
vout_control_WaitEmpty
(
&
vout
->
p
->
control
);
if
(
!
vout
->
p
->
dead
)
{
msg_Dbg
(
object
,
"reusing provided vout"
);
return
vout
;
...
...
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