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
7d3ddd33
Commit
7d3ddd33
authored
Nov 17, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove SAP node on quit
parent
3bb2997f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+17
-1
src/playlist/view.c
src/playlist/view.c
+1
-0
No files found.
modules/services_discovery/sap.c
View file @
7d3ddd33
...
...
@@ -342,6 +342,8 @@ static void Close( vlc_object_t *p_this )
{
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_sys_t
*
p_sys
=
p_sd
->
p_sys
;
playlist_t
*
p_playlist
;
int
i
;
for
(
i
=
p_sys
->
i_fd
-
1
;
i
>=
0
;
i
--
)
...
...
@@ -359,6 +361,15 @@ static void Close( vlc_object_t *p_this )
RemoveAnnounce
(
p_sd
,
p_sys
->
pp_announces
[
i
]
);
}
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_sd
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
)
{
playlist_NodeDelete
(
p_playlist
,
p_sys
->
p_node
,
VLC_TRUE
);
vlc_object_release
(
p_playlist
);
}
free
(
p_sys
);
}
...
...
@@ -473,13 +484,18 @@ static int Demux( demux_t *p_demux )
playlist_t
*
p_playlist
;
if
(
!
psz_sdp
)
{
return
-
1
;
}
/* Gather the complete sdp file */
for
(
;;
)
{
fprintf
(
stderr
,
"read %i at %p
\n
"
,
i_max_sdp
-
i_sdp
-
1
,
&
psz_sdp
[
i_sdp
]);
int
i_read
=
stream_Read
(
p_demux
->
s
,
&
psz_sdp
[
i_sdp
],
i_max_sdp
-
i_sdp
-
1
);
if
(
i_read
<
0
)
{
...
...
src/playlist/view.c
View file @
7d3ddd33
...
...
@@ -317,6 +317,7 @@ int playlist_NodeEmpty( playlist_t *p_playlist, playlist_item_t *p_root,
else
if
(
b_delete_items
)
{
/* Delete the item here */
playlist_Delete
(
p_playlist
,
p_root
->
pp_children
[
i
]
->
input
.
i_id
);
}
}
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