Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
664784f3
Commit
664784f3
authored
Nov 10, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash when a session is deleted
parent
92b7ae98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+13
-3
No files found.
modules/services_discovery/sap.c
View file @
664784f3
...
...
@@ -149,7 +149,7 @@ struct sdp_t
char
*
psz_network_type
;
char
*
psz_address_type
;
char
*
psz_address
;
int
i_session_id
;
int
64_t
i_session_id
;
/* "computed" URI */
char
*
psz_uri
;
...
...
@@ -1033,7 +1033,7 @@ static sdp_t * ParseSDP( vlc_object_t *p_obj, char* psz_sdp )
GET_FIELD
(
p_sdp
->
psz_username
);
GET_FIELD
(
psz_sess_id
);
p_sdp
->
i_session_id
=
ato
i
(
psz_sess_id
);
p_sdp
->
i_session_id
=
ato
ll
(
psz_sess_id
);
FREE
(
psz_sess_id
);
...
...
@@ -1233,7 +1233,7 @@ static void FreeSDP( sdp_t *p_sdp )
static
int
RemoveAnnounce
(
services_discovery_t
*
p_sd
,
sap_announce_t
*
p_announce
)
{
int
i
;
playlist_t
*
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_sd
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
...
...
@@ -1252,6 +1252,16 @@ static int RemoveAnnounce( services_discovery_t *p_sd,
playlist_Delete
(
p_playlist
,
p_announce
->
p_item
->
input
.
i_id
);
}
for
(
i
=
0
;
i
<
p_sd
->
p_sys
->
i_announces
;
i
++
)
{
if
(
p_sd
->
p_sys
->
pp_announces
[
i
]
==
p_announce
)
{
REMOVE_ELEM
(
p_sd
->
p_sys
->
pp_announces
,
p_sd
->
p_sys
->
i_announces
,
i
);
break
;
}
}
vlc_object_release
(
p_playlist
);
free
(
p_announce
);
...
...
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