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
4359eb91
Commit
4359eb91
authored
Apr 02, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* vlc_es: fixed es_format_Copy. (Duplicate psz_encoding and p_palette).
parent
57832ef3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
include/vlc_es.h
include/vlc_es.h
+19
-4
No files found.
include/vlc_es.h
View file @
4359eb91
...
@@ -197,18 +197,33 @@ static inline void es_format_Copy( es_format_t *dst, es_format_t *src )
...
@@ -197,18 +197,33 @@ static inline void es_format_Copy( es_format_t *dst, es_format_t *src )
dst
->
i_extra
=
0
;
dst
->
i_extra
=
0
;
dst
->
p_extra
=
NULL
;
dst
->
p_extra
=
NULL
;
}
}
if
(
src
->
subs
.
psz_encoding
)
dst
->
subs
.
psz_encoding
=
strdup
(
src
->
subs
.
psz_encoding
);
if
(
src
->
video
.
p_palette
)
{
dst
->
video
.
p_palette
=
malloc
(
sizeof
(
video_palette_t
)
);
memcpy
(
dst
->
video
.
p_palette
,
src
->
video
.
p_palette
,
sizeof
(
video_palette_t
)
);
}
}
}
static
inline
void
es_format_Clean
(
es_format_t
*
fmt
)
static
inline
void
es_format_Clean
(
es_format_t
*
fmt
)
{
{
if
(
fmt
->
psz_language
)
free
(
fmt
->
psz_language
);
if
(
fmt
->
psz_language
)
free
(
fmt
->
psz_language
);
fmt
->
psz_language
=
0
;
fmt
->
psz_language
=
NULL
;
if
(
fmt
->
psz_description
)
free
(
fmt
->
psz_description
);
if
(
fmt
->
psz_description
)
free
(
fmt
->
psz_description
);
fmt
->
psz_description
=
0
;
fmt
->
psz_description
=
NULL
;
if
(
fmt
->
i_extra
>
0
)
free
(
fmt
->
p_extra
);
if
(
fmt
->
i_extra
>
0
)
free
(
fmt
->
p_extra
);
fmt
->
i_extra
=
0
;
fmt
->
p_extra
=
0
;
fmt
->
i_extra
=
0
;
fmt
->
p_extra
=
NULL
;
if
(
fmt
->
video
.
p_palette
)
free
(
fmt
->
video
.
p_palette
);
if
(
fmt
->
video
.
p_palette
)
free
(
fmt
->
video
.
p_palette
);
fmt
->
video
.
p_palette
=
0
;
fmt
->
video
.
p_palette
=
NULL
;
if
(
fmt
->
subs
.
psz_encoding
)
free
(
fmt
->
subs
.
psz_encoding
);
fmt
->
subs
.
psz_encoding
=
NULL
;
}
}
#endif
#endif
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