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
de1cb2a1
Commit
de1cb2a1
authored
Aug 22, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/dvbsub.c: fixed recent breakage of subtitles positionning.
parent
d80b925e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
20 deletions
+14
-20
modules/codec/dvbsub.c
modules/codec/dvbsub.c
+14
-20
No files found.
modules/codec/dvbsub.c
View file @
de1cb2a1
...
@@ -268,7 +268,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -268,7 +268,7 @@ static int Open( vlc_object_t *p_this )
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_sys_t
*
p_sys
;
decoder_sys_t
*
p_sys
;
vlc_value_t
val
;
vlc_value_t
val
;
int
posx
,
posy
;
int
i_posx
,
i_posy
;
if
(
p_dec
->
fmt_in
.
i_codec
!=
VLC_FOURCC
(
'd'
,
'v'
,
'b'
,
's'
)
)
if
(
p_dec
->
fmt_in
.
i_codec
!=
VLC_FOURCC
(
'd'
,
'v'
,
'b'
,
's'
)
)
{
{
...
@@ -287,34 +287,28 @@ static int Open( vlc_object_t *p_this )
...
@@ -287,34 +287,28 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_cluts
=
NULL
;
p_sys
->
p_cluts
=
NULL
;
p_sys
->
p_page
=
NULL
;
p_sys
->
p_page
=
NULL
;
var_Create
(
p_this
,
DVBSUB_CFG_PREFIX
"position"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
DVBSUB_CFG_PREFIX
"position"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_this
,
DVBSUB_CFG_PREFIX
"position"
,
&
val
);
var_Get
(
p_this
,
DVBSUB_CFG_PREFIX
"position"
,
&
val
);
p_sys
->
i_spu_position
=
val
.
i_int
;
p_sys
->
i_spu_position
=
val
.
i_int
;
var_Create
(
p_this
,
DVBSUB_CFG_PREFIX
"x"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
DVBSUB_CFG_PREFIX
"x"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_this
,
DVBSUB_CFG_PREFIX
"x"
,
&
val
);
var_Get
(
p_this
,
DVBSUB_CFG_PREFIX
"x"
,
&
val
);
posx
=
val
.
i_int
;
i_posx
=
val
.
i_int
;
var_Create
(
p_this
,
DVBSUB_CFG_PREFIX
"y"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
DVBSUB_CFG_PREFIX
"y"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_this
,
DVBSUB_CFG_PREFIX
"y"
,
&
val
);
var_Get
(
p_this
,
DVBSUB_CFG_PREFIX
"y"
,
&
val
);
posy
=
val
.
i_int
;
i_
posy
=
val
.
i_int
;
/* Check if subpicture position was overridden */
/* Check if subpicture position was overridden */
p_sys
->
b_absolute
=
VLC_TRUE
;
p_sys
->
b_absolute
=
VLC_TRUE
;
if
(
posx
<
0
||
posy
<
0
)
p_sys
->
i_spu_x
=
p_sys
->
i_spu_y
=
0
;
{
p_sys
->
b_absolute
=
VLC_FALSE
;
if
(
i_posx
>=
0
&&
i_posy
>=
0
)
p_sys
->
i_spu_x
=
0
;
p_sys
->
i_spu_y
=
0
;
}
else
if
(
posx
>=
0
||
posy
>=
0
)
{
p_sys
->
i_spu_x
=
posx
;
p_sys
->
i_spu_y
=
posy
;
}
else
if
(
p_sys
->
i_spu_x
<
0
||
p_sys
->
i_spu_y
<
0
)
{
{
p_sys
->
b_absolute
=
VLC_FALSE
;
p_sys
->
b_absolute
=
VLC_FALSE
;
p_sys
->
i_spu_x
=
0
;
p_sys
->
i_spu_x
=
i_posx
;
p_sys
->
i_spu_y
=
0
;
p_sys
->
i_spu_y
=
i_posy
;
}
}
es_format_Init
(
&
p_dec
->
fmt_out
,
SPU_ES
,
VLC_FOURCC
(
'd'
,
'v'
,
'b'
,
's'
)
);
es_format_Init
(
&
p_dec
->
fmt_out
,
SPU_ES
,
VLC_FOURCC
(
'd'
,
'v'
,
'b'
,
's'
)
);
...
...
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