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
b75e0500
Commit
b75e0500
authored
Aug 30, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix one memleak and a few unused result warnings
parent
6fdd1765
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
modules/access_filter/record.c
modules/access_filter/record.c
+21
-12
No files found.
modules/access_filter/record.c
View file @
b75e0500
...
@@ -394,16 +394,19 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
...
@@ -394,16 +394,19 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
}
}
if
(
psz_name
==
NULL
)
if
(
asprintf
(
&
p_sys
->
psz_file
,
"%s %d-%d-%d %.2dh%.2dm%.2ds.%s"
,
psz_name
=
strdup
(
"Unknown"
);
(
psz_name
!=
NULL
)
?
psz_name
:
"Unknown"
,
l
.
tm_mday
,
l
.
tm_mon
+
1
,
l
.
tm_year
+
1900
,
asprintf
(
&
p_sys
->
psz_file
,
"%s %d-%d-%d %.2dh%.2dm%.2ds.%s"
,
l
.
tm_hour
,
l
.
tm_min
,
l
.
tm_sec
,
psz_name
,
p_sys
->
psz_ext
)
==
-
1
)
l
.
tm_mday
,
l
.
tm_mon
+
1
,
l
.
tm_year
+
1900
,
p_sys
->
psz_file
=
NULL
;
l
.
tm_hour
,
l
.
tm_min
,
l
.
tm_sec
,
p_sys
->
psz_ext
);
free
(
psz_name
);
free
(
psz_name
);
if
(
p_sys
->
psz_file
==
NULL
)
{
p_sys
->
b_dump
=
VLC_FALSE
;
return
;
}
/* Remove all forbidden characters (except (back)slashes) */
/* Remove all forbidden characters (except (back)slashes) */
for
(
psz
=
p_sys
->
psz_file
;
*
psz
;
psz
++
)
for
(
psz
=
p_sys
->
psz_file
;
*
psz
;
psz
++
)
...
@@ -422,16 +425,22 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
...
@@ -422,16 +425,22 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
#endif
#endif
}
}
psz_name
=
strdup
(
p_sys
->
psz_file
)
;
psz_name
=
p_sys
->
psz_file
;
#if defined (WIN32) || defined (UNDER_CE)
#if defined (WIN32) || defined (UNDER_CE)
#define DIR_SEP "\\"
#define DIR_SEP "\\"
#else
#else
#define DIR_SEP "/"
#define DIR_SEP "/"
#endif
#endif
asprintf
(
&
p_sys
->
psz_file
,
"%s"
DIR_SEP
"%s"
,
if
(
asprintf
(
&
p_sys
->
psz_file
,
"%s"
DIR_SEP
"%s"
,
p_sys
->
psz_path
,
psz_name
);
p_sys
->
psz_path
,
psz_name
)
==
-
1
)
free
(
psz_name
);
p_sys
->
psz_file
=
NULL
;
free
(
psz_name
);
if
(
p_sys
->
psz_file
==
NULL
)
{
p_sys
->
b_dump
=
VLC_FALSE
;
return
;
}
msg_Dbg
(
p_access
,
"dump in file '%s'"
,
p_sys
->
psz_file
);
msg_Dbg
(
p_access
,
"dump in file '%s'"
,
p_sys
->
psz_file
);
...
...
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