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
0a69bbfd
Commit
0a69bbfd
authored
Feb 03, 2010
by
Fabio Ritrovato
Committed by
Rémi Denis-Courmont
Feb 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
luasd: use a configuration chain to pass parameters to SD
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
2d81d799
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
include/vlc_services_discovery.h
include/vlc_services_discovery.h
+2
-0
modules/gui/qt4/components/playlist/selector.cpp
modules/gui/qt4/components/playlist/selector.cpp
+1
-1
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+7
-4
No files found.
include/vlc_services_discovery.h
View file @
0a69bbfd
...
...
@@ -48,6 +48,8 @@ struct services_discovery_t
vlc_event_manager_t
event_manager
;
/* Accessed through Setters for non class function */
config_chain_t
*
p_cfg
;
services_discovery_sys_t
*
p_sys
;
};
...
...
modules/gui/qt4/components/playlist/selector.cpp
View file @
0a69bbfd
...
...
@@ -173,7 +173,7 @@ void PLSelector::setSource( QTreeWidgetItem *item )
if
(
i_type
==
SD_TYPE
)
{
pl_item
=
playlist_ChildSearchName
(
THEPL
->
p_root
,
qtu
(
item
->
data
(
0
,
LONG
NAME_ROLE
).
toString
()
)
);
pl_item
=
playlist_ChildSearchName
(
THEPL
->
p_root
,
qtu
(
item
->
data
(
0
,
NAME_ROLE
).
toString
()
)
);
if
(
item
->
data
(
0
,
SPECIAL_ROLE
).
toInt
()
==
IS_PODCAST
)
{
if
(
pl_item
&&
!
sd_loaded
)
...
...
src/playlist/services_discovery.c
View file @
0a69bbfd
...
...
@@ -280,10 +280,13 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modul
if
(
!
p_sd
)
return
VLC_ENOMEM
;
module_t
*
m
=
module_find_by_shortcut
(
psz_module
);
char
*
psz_name
=
NULL
;
config_ChainCreate
(
&
psz_name
,
&
p_sd
->
p_cfg
,
psz_module
);
module_t
*
m
=
module_find_by_shortcut
(
psz_name
);
if
(
!
m
)
{
msg_Err
(
p_playlist
,
"No such module: %s"
,
psz_
modul
e
);
msg_Err
(
p_playlist
,
"No such module: %s"
,
psz_
nam
e
);
vlc_sd_Destroy
(
p_sd
);
return
VLC_EGENERIC
;
}
...
...
@@ -300,7 +303,7 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modul
playlist_item_t
*
p_node
;
PL_LOCK
;
p_node
=
playlist_NodeCreate
(
p_playlist
,
module_get_name
(
m
,
true
)
,
p_node
=
playlist_NodeCreate
(
p_playlist
,
psz_module
,
p_playlist
->
p_root
,
0
,
NULL
);
PL_UNLOCK
;
module_release
(
m
);
...
...
@@ -313,7 +316,7 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modul
vlc_ServicesDiscoveryItemRemoved
,
playlist_sd_item_removed
,
p_node
);
if
(
!
vlc_sd_Start
(
p_sd
,
psz_
modul
e
)
)
if
(
!
vlc_sd_Start
(
p_sd
,
psz_
nam
e
)
)
{
vlc_sd_Destroy
(
p_sd
);
free
(
p_sds
);
...
...
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