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
c3a6f497
Commit
c3a6f497
authored
Nov 29, 2009
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "vout: avoid applying subtitle offset twice and modify behavior when subtitles overlap"
This reverts commit
4c627dc6
.
parent
e995a5b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+7
-2
No files found.
src/video_output/vout_subpictures.c
View file @
c3a6f497
...
...
@@ -518,10 +518,17 @@ void spu_RenderSubpictures( spu_t *p_spu,
if
(
p_subpic
->
b_subtitle
)
{
area
=
spu_area_unscaled
(
area
,
scale
);
if
(
!
p_subpic
->
b_absolute
&&
area
.
i_width
>
0
&&
area
.
i_height
>
0
)
{
p_region
->
i_x
=
area
.
i_x
;
p_region
->
i_y
=
area
.
i_y
;
}
if
(
p_subtitle_area
)
p_subtitle_area
[
i_subtitle_area
++
]
=
area
;
}
}
if
(
p_subpic
->
b_subtitle
)
p_subpic
->
b_absolute
=
true
;
}
/* */
...
...
@@ -1662,8 +1669,6 @@ static int SubpictureCmp( const void *s0, const void *s1 )
r
=
IntegerCmp
(
p_subpic0
->
i_channel
,
p_subpic1
->
i_channel
);
if
(
!
r
)
r
=
IntegerCmp
(
p_subpic0
->
i_order
,
p_subpic1
->
i_order
);
//NOTE We swap subtitle order so that newer subtitles push older ones higher.
if
(
p_subpic0
->
b_subtitle
&&
p_subpic1
->
b_subtitle
)
r
=
!
r
;
return
r
;
}
...
...
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