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
04c2b122
Commit
04c2b122
authored
Jul 21, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use picture_New/...
parent
ece9d8a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
22 deletions
+14
-22
modules/gui/fbosd.c
modules/gui/fbosd.c
+14
-22
No files found.
modules/gui/fbosd.c
View file @
04c2b122
...
@@ -628,8 +628,11 @@ static void CloseTextRenderer( intf_thread_t *p_intf )
...
@@ -628,8 +628,11 @@ static void CloseTextRenderer( intf_thread_t *p_intf )
static
picture_t
*
AllocatePicture
(
vlc_object_t
*
p_this
,
static
picture_t
*
AllocatePicture
(
vlc_object_t
*
p_this
,
video_format_t
*
p_fmt
)
video_format_t
*
p_fmt
)
{
{
picture_t
*
p_pic
=
malloc
(
sizeof
(
picture_t
)
);
picture_t
*
p_picture
=
picture_New
(
p_fmt
->
i_chroma
,
if
(
!
p_pic
)
return
NULL
;
p_fmt
->
i_width
,
p_fmt
->
i_height
,
p_fmt
->
i_aspect
);
if
(
!
p_picture
)
return
NULL
;
if
(
!
p_fmt
->
p_palette
&&
if
(
!
p_fmt
->
p_palette
&&
(
p_fmt
->
i_chroma
==
VLC_FOURCC
(
'Y'
,
'U'
,
'V'
,
'P'
)
)
)
(
p_fmt
->
i_chroma
==
VLC_FOURCC
(
'Y'
,
'U'
,
'V'
,
'P'
)
)
)
...
@@ -637,24 +640,16 @@ static picture_t *AllocatePicture( vlc_object_t *p_this,
...
@@ -637,24 +640,16 @@ static picture_t *AllocatePicture( vlc_object_t *p_this,
p_fmt
->
p_palette
=
malloc
(
sizeof
(
video_palette_t
)
);
p_fmt
->
p_palette
=
malloc
(
sizeof
(
video_palette_t
)
);
if
(
!
p_fmt
->
p_palette
)
if
(
!
p_fmt
->
p_palette
)
{
{
free
(
p_pic
);
picture_Release
(
p_picture
);
return
NULL
;
return
NULL
;
}
}
}
}
else
p_fmt
->
p_palette
=
NULL
;
else
p_pic
->
p_data_orig
=
NULL
;
vout_AllocatePicture
(
p_this
,
p_pic
,
p_fmt
->
i_chroma
,
p_fmt
->
i_width
,
p_fmt
->
i_height
,
p_fmt
->
i_aspect
);
if
(
!
p_pic
->
i_planes
)
{
{
free
(
p_pic
);
p_fmt
->
p_palette
=
NULL
;
free
(
p_fmt
->
p_palette
);
return
NULL
;
}
}
return
p_pic
;
return
p_picture
;
}
}
/*****************************************************************************
/*****************************************************************************
...
@@ -665,18 +660,15 @@ static void DeAllocatePicture( vlc_object_t *p_this, picture_t *p_pic,
...
@@ -665,18 +660,15 @@ static void DeAllocatePicture( vlc_object_t *p_this, picture_t *p_pic,
video_format_t
*
p_fmt
)
video_format_t
*
p_fmt
)
{
{
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
p_this
);
if
(
p_pic
)
{
free
(
p_pic
->
p_data_orig
);
if
(
p_pic
->
pf_release
)
p_pic
->
pf_release
(
p_pic
);
else
free
(
p_pic
);
}
if
(
p_fmt
)
if
(
p_fmt
)
{
{
free
(
p_fmt
->
p_palette
);
free
(
p_fmt
->
p_palette
);
p_fmt
->
p_palette
=
NULL
;
p_fmt
->
p_palette
=
NULL
;
}
}
p_pic
=
NULL
;
if
(
p_pic
)
picture_Release
(
p_pic
);
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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