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
a296434c
Commit
a296434c
authored
Jun 13, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed "spu-elapsed" value set by the core.
parent
2f038724
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+3
-3
No files found.
src/video_output/vout_subpictures.c
View file @
a296434c
...
@@ -257,7 +257,7 @@ static filter_t *SpuRenderCreateAndLoadScale(vlc_object_t *object,
...
@@ -257,7 +257,7 @@ static filter_t *SpuRenderCreateAndLoadScale(vlc_object_t *object,
static
void
SpuRenderText
(
spu_t
*
spu
,
bool
*
rerender_text
,
static
void
SpuRenderText
(
spu_t
*
spu
,
bool
*
rerender_text
,
subpicture_region_t
*
region
,
subpicture_region_t
*
region
,
mtime_t
render_dat
e
)
mtime_t
elapsed_tim
e
)
{
{
filter_t
*
text
=
spu
->
p
->
text
;
filter_t
*
text
=
spu
->
p
->
text
;
...
@@ -285,7 +285,7 @@ static void SpuRenderText(spu_t *spu, bool *rerender_text,
...
@@ -285,7 +285,7 @@ static void SpuRenderText(spu_t *spu, bool *rerender_text,
* least show up on screen, but the effect won't change
* least show up on screen, but the effect won't change
* the text over time.
* the text over time.
*/
*/
var_SetTime
(
text
,
"spu-elapsed"
,
render_dat
e
);
var_SetTime
(
text
,
"spu-elapsed"
,
elapsed_tim
e
);
var_SetBool
(
text
,
"text-rerender"
,
false
);
var_SetBool
(
text
,
"text-rerender"
,
false
);
if
(
text
->
pf_render_html
&&
region
->
psz_html
)
if
(
text
->
pf_render_html
&&
region
->
psz_html
)
...
@@ -691,7 +691,7 @@ static void SpuRenderRegion(spu_t *spu,
...
@@ -691,7 +691,7 @@ static void SpuRenderRegion(spu_t *spu,
/* Render text region */
/* Render text region */
if
(
region
->
fmt
.
i_chroma
==
VLC_CODEC_TEXT
)
{
if
(
region
->
fmt
.
i_chroma
==
VLC_CODEC_TEXT
)
{
SpuRenderText
(
spu
,
&
restore_text
,
region
,
SpuRenderText
(
spu
,
&
restore_text
,
region
,
render_date
);
render_date
-
subpic
->
i_start
);
/* Check if the rendering has failed ... */
/* Check if the rendering has failed ... */
if
(
region
->
fmt
.
i_chroma
==
VLC_CODEC_TEXT
)
if
(
region
->
fmt
.
i_chroma
==
VLC_CODEC_TEXT
)
...
...
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