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
220742ef
Commit
220742ef
authored
Dec 22, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediadirs: dummy probing support
Maybe we should check the directories do exist first?
parent
2c421865
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
modules/services_discovery/mediadirs.c
modules/services_discovery/mediadirs.c
+12
-0
No files found.
modules/services_discovery/mediadirs.c
View file @
220742ef
...
...
@@ -61,6 +61,8 @@ OPEN_MODULE( Picture )
#undef OPEN_MODULE
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
);
vlc_module_begin
()
set_category
(
CAT_PLAYLIST
)
set_subcategory
(
SUBCAT_PLAYLIST_SD
)
...
...
@@ -85,6 +87,7 @@ vlc_module_begin ()
set_callbacks
(
OpenPicture
,
Close
)
add_shortcut
(
"picture_dir"
)
VLC_SD_PROBE_SUBMODULE
vlc_module_end
()
...
...
@@ -347,3 +350,12 @@ enum type_e fileType( services_discovery_t *p_sd, const char* psz_file )
free
(
psz_dir
);
return
i_ret
;
}
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
obj
)
{
vlc_probe_t
*
probe
=
(
vlc_probe_t
*
)
obj
;
vlc_sd_probe_Add
(
probe
,
"video_dir"
,
N_
(
"My Videos"
)
);
vlc_sd_probe_Add
(
probe
,
"audio_dir"
,
N_
(
"My Music"
)
);
return
vlc_sd_probe_Add
(
probe
,
"picture_dir"
,
N_
(
"My Pictures"
)
);
}
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