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
39945009
Commit
39945009
authored
Apr 10, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix invalid free() on exit
parent
fcce5018
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/demux/playlist/b4s.c
modules/demux/playlist/b4s.c
+8
-4
No files found.
modules/demux/playlist/b4s.c
View file @
39945009
...
@@ -59,6 +59,7 @@ static void ShoutcastAdd( playlist_t *p_playlist, playlist_item_t* p_genre,
...
@@ -59,6 +59,7 @@ static void ShoutcastAdd( playlist_t *p_playlist, playlist_item_t* p_genre,
int
Import_B4S
(
vlc_object_t
*
p_this
)
int
Import_B4S
(
vlc_object_t
*
p_this
)
{
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
;
char
*
psz_ext
;
char
*
psz_ext
;
...
@@ -78,15 +79,18 @@ int Import_B4S( vlc_object_t *p_this )
...
@@ -78,15 +79,18 @@ int Import_B4S( vlc_object_t *p_this )
p_demux
->
pf_control
=
Control
;
p_demux
->
pf_control
=
Control
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
p_
demux
->
p_
sys
==
NULL
)
if
(
p_sys
==
NULL
)
{
{
msg_Err
(
p_demux
,
"Out of memory"
);
msg_Err
(
p_demux
,
"Out of memory"
);
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
}
}
p_
demux
->
p_
sys
->
b_shout
=
p_demux
->
psz_demux
&&
p_sys
->
b_shout
=
p_demux
->
psz_demux
&&
!
strcmp
(
p_demux
->
psz_demux
,
"shout-b4s"
);
!
strcmp
(
p_demux
->
psz_demux
,
"shout-b4s"
);
p_demux
->
p_sys
->
psz_prefix
=
FindPrefix
(
p_demux
);
p_sys
->
psz_prefix
=
FindPrefix
(
p_demux
);
p_sys
->
p_playlist
=
NULL
;
p_sys
->
p_xml
=
NULL
;
p_sys
->
p_xml_reader
=
NULL
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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