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
945b9c41
Commit
945b9c41
authored
Apr 17, 2005
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shout.c: fix some potential problems
parent
b5809048
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/services_discovery/shout.c
modules/services_discovery/shout.c
+8
-6
No files found.
modules/services_discovery/shout.c
View file @
945b9c41
...
...
@@ -143,11 +143,13 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_node
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
p_sys
->
p_input
=
input_CreateThread
(
p_playlist
,
&
p_item
->
input
);
/* We need to declare the parents of the node as the same of the
* parent's ones */
playlist_CopyParents
(
p_sys
->
p_node
,
p_item
);
p_sys
->
p_input
=
input_CreateThread
(
p_playlist
,
&
p_item
->
input
);
p_sys
->
p_node
->
i_flags
|=
PLAYLIST_RO_FLAG
;
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_playlist
,
"intf-change"
,
val
);
...
...
@@ -166,11 +168,6 @@ static void Close( vlc_object_t *p_this )
services_discovery_sys_t
*
p_sys
=
p_sd
->
p_sys
;
playlist_t
*
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_TRUE
);
vlc_object_release
(
p_playlist
);
}
if
(
p_sd
->
p_sys
->
p_input
)
{
input_StopThread
(
p_sd
->
p_sys
->
p_input
);
...
...
@@ -179,6 +176,11 @@ static void Close( vlc_object_t *p_this )
vlc_object_destroy
(
p_sd
->
p_sys
->
p_input
);
p_sd
->
p_sys
->
p_input
=
NULL
;
}
if
(
p_playlist
)
{
playlist_NodeDelete
(
p_playlist
,
p_sys
->
p_node
,
VLC_TRUE
,
VLC_TRUE
);
vlc_object_release
(
p_playlist
);
}
free
(
p_sys
);
}
...
...
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