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
ee73bdea
Commit
ee73bdea
authored
Feb 10, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need for sprintf() here
This reverts commit
af688c8f
.
parent
4f4a8d71
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
include/vlc_services_discovery.h
include/vlc_services_discovery.h
+2
-3
modules/services_discovery/bonjour.c
modules/services_discovery/bonjour.c
+1
-1
modules/services_discovery/mtp.c
modules/services_discovery/mtp.c
+1
-1
modules/services_discovery/podcast.c
modules/services_discovery/podcast.c
+1
-1
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+1
-1
No files found.
include/vlc_services_discovery.h
View file @
ee73bdea
...
@@ -109,10 +109,9 @@ VLC_EXPORT(int, vlc_sd_probe_Add, (vlc_probe_t *, const char *, const char *, in
...
@@ -109,10 +109,9 @@ VLC_EXPORT(int, vlc_sd_probe_Add, (vlc_probe_t *, const char *, const char *, in
#define VLC_SD_PROBE_HELPER(name, longname, cat) \
#define VLC_SD_PROBE_HELPER(name, longname, cat) \
static int vlc_sd_probe_Open (vlc_object_t *obj) \
static int vlc_sd_probe_Open (vlc_object_t *obj) \
{ \
{ \
char psz_name[ strlen( name ) + strlen( longname ) + 20 ]; \
sprintf( psz_name, "%s{longname=\"%s\"}", name, longname ); \
return vlc_sd_probe_Add ((struct vlc_probe_t *)obj, \
return vlc_sd_probe_Add ((struct vlc_probe_t *)obj, \
psz_name, longname, cat); \
name "{longname=\"" longname "\"}", \
longname, cat); \
}
}
/** @} */
/** @} */
...
...
modules/services_discovery/bonjour.c
View file @
ee73bdea
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
VLC_SD_PROBE_HELPER
(
"bonjour"
,
N_
(
"Bonjour services"
)
,
SD_CAT_LAN
)
VLC_SD_PROBE_HELPER
(
"bonjour"
,
"Bonjour services"
,
SD_CAT_LAN
)
vlc_module_begin
()
vlc_module_begin
()
set_shortname
(
"Bonjour"
)
set_shortname
(
"Bonjour"
)
...
...
modules/services_discovery/mtp.c
View file @
ee73bdea
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
VLC_SD_PROBE_HELPER
(
"mtp"
,
N_
(
"MTP devices"
)
,
SD_CAT_DEVICES
)
VLC_SD_PROBE_HELPER
(
"mtp"
,
"MTP devices"
,
SD_CAT_DEVICES
)
vlc_module_begin
()
vlc_module_begin
()
set_shortname
(
"MTP"
)
set_shortname
(
"MTP"
)
...
...
modules/services_discovery/podcast.c
View file @
ee73bdea
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
VLC_SD_PROBE_HELPER
(
"podcast"
,
N_
(
"Podcasts"
)
,
SD_CAT_INTERNET
)
VLC_SD_PROBE_HELPER
(
"podcast"
,
"Podcasts"
,
SD_CAT_INTERNET
)
#define URLS_TEXT N_("Podcast URLs list")
#define URLS_TEXT N_("Podcast URLs list")
#define URLS_LONGTEXT N_("Enter the list of podcasts to retrieve, " \
#define URLS_LONGTEXT N_("Enter the list of podcasts to retrieve, " \
...
...
modules/services_discovery/sap.c
View file @
ee73bdea
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
static
int
OpenDemux
(
vlc_object_t
*
);
static
int
OpenDemux
(
vlc_object_t
*
);
static
void
CloseDemux
(
vlc_object_t
*
);
static
void
CloseDemux
(
vlc_object_t
*
);
VLC_SD_PROBE_HELPER
(
"sap"
,
N_
(
"Network streams (SAP)"
)
,
SD_CAT_LAN
)
VLC_SD_PROBE_HELPER
(
"sap"
,
"Network streams (SAP)"
,
SD_CAT_LAN
)
vlc_module_begin
()
vlc_module_begin
()
set_shortname
(
N_
(
"SAP"
))
set_shortname
(
N_
(
"SAP"
))
...
...
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