Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
027b8eab
Commit
027b8eab
authored
Sep 02, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attach service discovery objects to the playlist (and remove a bunch of trailing spaces).
parent
e3a2301c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
src/playlist/engine.c
src/playlist/engine.c
+1
-1
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+13
-11
No files found.
src/playlist/engine.c
View file @
027b8eab
...
...
@@ -650,7 +650,7 @@ void playlist_FetcherLoop( playlist_fetcher_t *p_obj )
break
;
msleep
(
50000
);
}
i_ret
=
input_ArtFind
(
p_playlist
,
p_item
);
if
(
i_ret
==
1
)
{
...
...
src/playlist/services_discovery.c
View file @
027b8eab
...
...
@@ -51,18 +51,18 @@ services_discovery_Create ( vlc_object_t * p_super, const char * psz_module_name
services_discovery_t
*
p_sd
=
vlc_object_create
(
p_super
,
VLC_OBJECT_SD
);
if
(
!
p_sd
)
return
NULL
;
p_sd
->
pf_run
=
NULL
;
p_sd
->
psz_localized_name
=
NULL
;
vlc_event_manager_init
(
&
p_sd
->
event_manager
,
p_sd
,
(
vlc_object_t
*
)
p_sd
);
vlc_event_manager_register_event_type
(
&
p_sd
->
event_manager
,
vlc_event_manager_register_event_type
(
&
p_sd
->
event_manager
,
vlc_ServicesDiscoveryItemAdded
);
vlc_event_manager_register_event_type
(
&
p_sd
->
event_manager
,
vlc_event_manager_register_event_type
(
&
p_sd
->
event_manager
,
vlc_ServicesDiscoveryItemRemoved
);
p_sd
->
p_module
=
module_Need
(
p_sd
,
"services_discovery"
,
psz_module_name
,
0
);
if
(
p_sd
->
p_module
==
NULL
)
{
msg_Err
(
p_super
,
"no suitable services discovery module"
);
...
...
@@ -72,6 +72,7 @@ services_discovery_Create ( vlc_object_t * p_super, const char * psz_module_name
p_sd
->
psz_module
=
strdup
(
psz_module_name
);
p_sd
->
b_die
=
VLC_FALSE
;
/* FIXME */
vlc_object_attach
(
p_sd
,
p_super
);
return
p_sd
;
}
...
...
@@ -85,6 +86,7 @@ void services_discovery_Destroy ( services_discovery_t * p_sd )
free
(
p_sd
->
psz_module
);
free
(
p_sd
->
psz_localized_name
);
vlc_object_detach
(
p_sd
);
vlc_object_destroy
(
p_sd
);
}
...
...
@@ -210,7 +212,7 @@ static void playlist_sd_item_added( const vlc_event_t * p_event, void * user_dat
}
p_parent
=
p_cat
;
}
p_new_item
=
playlist_NodeAddInput
(
p_parent
->
p_playlist
,
p_input
,
p_parent
,
PLAYLIST_APPEND
,
PLAYLIST_END
,
VLC_FALSE
);
p_new_item
->
i_flags
&=
~
PLAYLIST_SKIP_FLAG
;
...
...
@@ -304,7 +306,7 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modu
p_asd
->
p_sd
=
p_sd
;
p_asd
->
p_one
=
p_one
;
p_asd
->
p_cat
=
p_cat
;
PL_LOCK
;
TAB_APPEND
(
p_playlist
->
p_internal
->
i_asds
,
p_playlist
->
p_internal
->
pp_asds
,
p_asd
);
PL_UNLOCK
;
...
...
@@ -339,25 +341,25 @@ int playlist_ServicesDiscoveryRemove( playlist_t * p_playlist,
vlc_ServicesDiscoveryItemAdded
,
playlist_sd_item_added
,
p_asd
->
p_one
);
vlc_event_detach
(
services_discovery_EventManager
(
p_asd
->
p_sd
),
vlc_ServicesDiscoveryItemAdded
,
playlist_sd_item_added
,
p_asd
->
p_cat
);
vlc_event_detach
(
services_discovery_EventManager
(
p_asd
->
p_sd
),
vlc_ServicesDiscoveryItemRemoved
,
playlist_sd_item_removed
,
p_asd
->
p_one
);
vlc_event_detach
(
services_discovery_EventManager
(
p_asd
->
p_sd
),
vlc_ServicesDiscoveryItemRemoved
,
playlist_sd_item_removed
,
p_asd
->
p_cat
);
/* Remove the sd playlist node if it exists */
PL_LOCK
;
if
(
p_asd
->
p_cat
!=
p_playlist
->
p_root_category
&&
if
(
p_asd
->
p_cat
!=
p_playlist
->
p_root_category
&&
p_asd
->
p_one
!=
p_playlist
->
p_root_onelevel
)
{
playlist_NodeDelete
(
p_playlist
,
p_asd
->
p_cat
,
VLC_TRUE
,
VLC_FALSE
);
...
...
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