Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
260a3c10
Commit
260a3c10
authored
Aug 06, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmem: pass visible dimensions (refs #9147)
parent
be37bd91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/video_output/vmem.c
modules/video_output/vmem.c
+6
-4
No files found.
modules/video_output/vmem.c
View file @
260a3c10
...
...
@@ -149,8 +149,8 @@ static int Open(vlc_object_t *object)
memset
(
sys
->
pitches
,
0
,
sizeof
(
sys
->
pitches
));
memset
(
sys
->
lines
,
0
,
sizeof
(
sys
->
lines
));
sys
->
count
=
setup
(
&
sys
->
opaque
,
chroma
,
&
fmt
.
i_
width
,
&
fmt
.
i_height
,
sys
->
pitches
,
sys
->
lines
);
sys
->
count
=
setup
(
&
sys
->
opaque
,
chroma
,
&
fmt
.
i_
visible_width
,
&
fmt
.
i_visible_height
,
sys
->
pitches
,
sys
->
lines
);
if
(
sys
->
count
==
0
)
{
msg_Err
(
vd
,
"video format setup failure (no pictures)"
);
free
(
sys
);
...
...
@@ -163,8 +163,8 @@ static int Open(vlc_object_t *object)
fmt
.
i_chroma
=
vlc_fourcc_GetCodecFromString
(
VIDEO_ES
,
chroma
);
free
(
chroma
);
fmt
.
i_width
=
var_InheritInteger
(
vd
,
"vmem-width"
);
fmt
.
i_height
=
var_InheritInteger
(
vd
,
"vmem-height"
);
fmt
.
i_
visible_
width
=
var_InheritInteger
(
vd
,
"vmem-width"
);
fmt
.
i_
visible_
height
=
var_InheritInteger
(
vd
,
"vmem-height"
);
sys
->
pitches
[
0
]
=
var_InheritInteger
(
vd
,
"vmem-pitch"
);
sys
->
lines
[
0
]
=
fmt
.
i_height
;
for
(
size_t
i
=
1
;
i
<
PICTURE_PLANE_MAX
;
i
++
)
...
...
@@ -175,6 +175,8 @@ static int Open(vlc_object_t *object)
sys
->
count
=
1
;
sys
->
cleanup
=
NULL
;
}
fmt
.
i_width
=
fmt
.
i_visible_width
;
fmt
.
i_height
=
fmt
.
i_visible_height
;
if
(
!
fmt
.
i_chroma
)
{
msg_Err
(
vd
,
"vmem-chroma should be 4 characters long"
);
...
...
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