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
5d81c926
Commit
5d81c926
authored
Jul 15, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Macro safety.
parent
d196ebc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
modules/demux/playlist/itml.c
modules/demux/playlist/itml.c
+6
-6
modules/demux/playlist/itml.h
modules/demux/playlist/itml.h
+5
-6
No files found.
modules/demux/playlist/itml.c
View file @
5d81c926
...
...
@@ -423,12 +423,12 @@ static void free_track( track_elem_t *p_track )
if
(
!
p_track
)
return
;
FREE
(
p_track
->
name
)
FREE
(
p_track
->
artist
)
FREE
(
p_track
->
album
)
FREE
(
p_track
->
genre
)
FREE
(
p_track
->
trackNum
)
FREE
(
p_track
->
location
)
FREE
NULL
(
p_track
->
name
);
FREE
NULL
(
p_track
->
artist
);
FREE
NULL
(
p_track
->
album
);
FREE
NULL
(
p_track
->
genre
);
FREE
NULL
(
p_track
->
trackNum
);
FREE
NULL
(
p_track
->
location
);
p_track
->
duration
=
0
;
free
(
p_track
);
}
...
...
modules/demux/playlist/itml.h
View file @
5d81c926
...
...
@@ -26,12 +26,11 @@
*/
/* defines */
#define FREE(v) free(v);v=NULL;
#define FREE_NAME() free(psz_name);psz_name=NULL;
#define FREE_VALUE() free(psz_value);psz_value=NULL;
#define FREE_KEY() free(psz_key);psz_key=NULL;
#define FREE_ATT() FREE_NAME();FREE_VALUE()
#define FREE_ATT_KEY() FREE_NAME();FREE_VALUE();FREE_KEY()
#define FREE_NAME() FREENULL( psz_name )
#define FREE_VALUE() FREENULL( psz_value )
#define FREE_KEY() FREENULL( psz_key )
#define FREE_ATT() do{ FREE_NAME();FREE_VALUE(); }while(0)
#define FREE_ATT_KEY() do{ FREE_NAME();FREE_VALUE();FREE_KEY();} while(0)
#define UNKNOWN_CONTENT 0
#define SIMPLE_CONTENT 1
...
...
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