Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ef186aec
Commit
ef186aec
authored
Jul 09, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmem: use var_Inherit*
parent
fd907c9a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/video_output/vmem.c
modules/video_output/vmem.c
+4
-4
No files found.
modules/video_output/vmem.c
View file @
ef186aec
...
@@ -123,7 +123,7 @@ static int Open(vlc_object_t *object)
...
@@ -123,7 +123,7 @@ static int Open(vlc_object_t *object)
vout_display_t
*
vd
=
(
vout_display_t
*
)
object
;
vout_display_t
*
vd
=
(
vout_display_t
*
)
object
;
/* */
/* */
char
*
chroma_format
=
var_
CreateGe
tString
(
vd
,
"vmem-chroma"
);
char
*
chroma_format
=
var_
Inheri
tString
(
vd
,
"vmem-chroma"
);
const
vlc_fourcc_t
chroma
=
vlc_fourcc_GetCodecFromString
(
VIDEO_ES
,
chroma_format
);
const
vlc_fourcc_t
chroma
=
vlc_fourcc_GetCodecFromString
(
VIDEO_ES
,
chroma_format
);
free
(
chroma_format
);
free
(
chroma_format
);
if
(
!
chroma
)
{
if
(
!
chroma
)
{
...
@@ -157,8 +157,8 @@ static int Open(vlc_object_t *object)
...
@@ -157,8 +157,8 @@ static int Open(vlc_object_t *object)
video_format_t
fmt
=
vd
->
fmt
;
video_format_t
fmt
=
vd
->
fmt
;
fmt
.
i_chroma
=
chroma
;
fmt
.
i_chroma
=
chroma
;
fmt
.
i_width
=
var_
CreateGe
tInteger
(
vd
,
"vmem-width"
);
fmt
.
i_width
=
var_
Inheri
tInteger
(
vd
,
"vmem-width"
);
fmt
.
i_height
=
var_
CreateGe
tInteger
(
vd
,
"vmem-height"
);
fmt
.
i_height
=
var_
Inheri
tInteger
(
vd
,
"vmem-height"
);
/* Define the bitmasks */
/* Define the bitmasks */
switch
(
chroma
)
switch
(
chroma
)
...
@@ -197,7 +197,7 @@ static int Open(vlc_object_t *object)
...
@@ -197,7 +197,7 @@ static int Open(vlc_object_t *object)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
/* */
/* */
const
int
pitch
=
var_
CreateGe
tInteger
(
vd
,
"vmem-pitch"
);
const
int
pitch
=
var_
Inheri
tInteger
(
vd
,
"vmem-pitch"
);
picture_resource_t
rsc
;
picture_resource_t
rsc
;
rsc
.
p_sys
=
malloc
(
sizeof
(
*
rsc
.
p_sys
));
rsc
.
p_sys
=
malloc
(
sizeof
(
*
rsc
.
p_sys
));
*
rsc
.
p_sys
=
cfg
;
*
rsc
.
p_sys
=
cfg
;
...
...
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