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
ccfd6a88
Commit
ccfd6a88
authored
Feb 06, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SD probe: always provide a long name
parent
be41036f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
9 deletions
+18
-9
modules/services_discovery/mediadirs.c
modules/services_discovery/mediadirs.c
+7
-3
modules/services_discovery/shout.c
modules/services_discovery/shout.c
+6
-3
modules/services_discovery/udev.c
modules/services_discovery/udev.c
+3
-2
modules/services_discovery/xcb_apps.c
modules/services_discovery/xcb_apps.c
+2
-1
No files found.
modules/services_discovery/mediadirs.c
View file @
ccfd6a88
...
@@ -355,7 +355,11 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
...
@@ -355,7 +355,11 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
{
{
vlc_probe_t
*
probe
=
(
vlc_probe_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
,
"video_dir{longname=
\"
My Videos
\"
}"
,
vlc_sd_probe_Add
(
probe
,
"audio_dir"
,
N_
(
"My Music"
)
);
N_
(
"My Videos"
)
);
return
vlc_sd_probe_Add
(
probe
,
"picture_dir"
,
N_
(
"My Pictures"
)
);
vlc_sd_probe_Add
(
probe
,
"audio_dir{longname=
\"
My Music
\"
}"
,
N_
(
"My Music"
)
);
vlc_sd_probe_Add
(
probe
,
"picture_dir{longname=
\"
My Pictures
\"
}"
,
N_
(
"My Pictures"
)
);
return
VLC_PROBE_CONTINUE
;
}
}
modules/services_discovery/shout.c
View file @
ccfd6a88
...
@@ -282,8 +282,11 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
...
@@ -282,8 +282,11 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
{
{
vlc_probe_t
*
probe
=
(
vlc_probe_t
*
)
obj
;
vlc_probe_t
*
probe
=
(
vlc_probe_t
*
)
obj
;
vlc_sd_probe_Add
(
probe
,
"shoutcast"
,
N_
(
"Shoutcast Radio"
)
);
vlc_sd_probe_Add
(
probe
,
"shoutcast{longname=
\"
Shoutcast Radio
\"
}"
,
vlc_sd_probe_Add
(
probe
,
"shoutcasttv"
,
N_
(
"Shoutcast TV"
)
);
N_
(
"Shoutcast Radio"
)
);
vlc_sd_probe_Add
(
probe
,
"frenchtv"
,
N_
(
"French TV"
)
);
vlc_sd_probe_Add
(
probe
,
"shoutcasttv{longname=
\"
Shoutcast TV
\"
}"
,
N_
(
"Shoutcast TV"
)
);
vlc_sd_probe_Add
(
probe
,
"frenchtv{longname=
\"
French TV
\"
}"
,
N_
(
"French TV"
)
);
return
VLC_PROBE_CONTINUE
;
return
VLC_PROBE_CONTINUE
;
}
}
modules/services_discovery/udev.c
View file @
ccfd6a88
...
@@ -73,8 +73,9 @@ static int vlc_sd_probe_Open (vlc_object_t *obj)
...
@@ -73,8 +73,9 @@ static int vlc_sd_probe_Open (vlc_object_t *obj)
struct
udev_monitor
*
mon
=
udev_monitor_new_from_netlink
(
udev
,
"udev"
);
struct
udev_monitor
*
mon
=
udev_monitor_new_from_netlink
(
udev
,
"udev"
);
if
(
mon
!=
NULL
)
if
(
mon
!=
NULL
)
{
{
vlc_sd_probe_Add
(
probe
,
"v4l"
,
N_
(
"Capture devices"
));
vlc_sd_probe_Add
(
probe
,
"v4l{longname=
\"
Video capture
\"
}"
,
vlc_sd_probe_Add
(
probe
,
"disc"
,
N_
(
"Discs"
));
N_
(
"Video capture"
));
vlc_sd_probe_Add
(
probe
,
"disc{longname=
\"
Discs
\"
}"
,
N_
(
"Discs"
));
udev_monitor_unref
(
mon
);
udev_monitor_unref
(
mon
);
}
}
udev_unref
(
udev
);
udev_unref
(
udev
);
...
...
modules/services_discovery/xcb_apps.c
View file @
ccfd6a88
...
@@ -79,7 +79,8 @@ static int vlc_sd_probe_Open (vlc_object_t *obj)
...
@@ -79,7 +79,8 @@ static int vlc_sd_probe_Open (vlc_object_t *obj)
if
(
xcb_connection_has_error
(
conn
))
if
(
xcb_connection_has_error
(
conn
))
return
VLC_PROBE_CONTINUE
;
return
VLC_PROBE_CONTINUE
;
xcb_disconnect
(
conn
);
xcb_disconnect
(
conn
);
return
vlc_sd_probe_Add
(
probe
,
"xcb_apps"
,
N_
(
"Screen capture"
));
return
vlc_sd_probe_Add
(
probe
,
"xcb_apps{longname=
\"
Screen capture
\"
}"
,
N_
(
"Screen capture"
));
}
}
/**
/**
...
...
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