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
64fb2cd1
Commit
64fb2cd1
authored
Jan 10, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore SD human-readable names
parent
eac4e0c9
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
42 deletions
+10
-42
include/vlc_services_discovery.h
include/vlc_services_discovery.h
+0
-2
modules/services_discovery/bonjour.c
modules/services_discovery/bonjour.c
+0
-2
modules/services_discovery/hal.c
modules/services_discovery/hal.c
+0
-2
modules/services_discovery/podcast.c
modules/services_discovery/podcast.c
+0
-2
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+0
-3
modules/services_discovery/shout.c
modules/services_discovery/shout.c
+0
-1
modules/services_discovery/upnp_cc.cpp
modules/services_discovery/upnp_cc.cpp
+0
-2
modules/services_discovery/upnp_intel.cpp
modules/services_discovery/upnp_intel.cpp
+0
-2
src/libvlccore.sym
src/libvlccore.sym
+0
-1
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+10
-25
No files found.
include/vlc_services_discovery.h
View file @
64fb2cd1
...
...
@@ -46,7 +46,6 @@ struct services_discovery_t
char
*
psz_module
;
module_t
*
p_module
;
char
*
psz_localized_name
;
/* Accessed through Setters for non class function */
vlc_event_manager_t
event_manager
;
/* Accessed through Setters for non class function */
services_discovery_sys_t
*
p_sys
;
...
...
@@ -86,7 +85,6 @@ VLC_EXPORT( char *, services_discovery_GetLocalizedName, ( servi
VLC_EXPORT
(
vlc_event_manager_t
*
,
services_discovery_EventManager
,
(
services_discovery_t
*
p_this
)
);
/* Used by services_discovery to post update about their items */
VLC_EXPORT
(
void
,
services_discovery_SetLocalizedName
,
(
services_discovery_t
*
p_this
,
const
char
*
)
);
/* About the psz_category, it is a legacy way to add info to the item,
* for more options, directly set the (meta) data on the input item */
VLC_EXPORT
(
void
,
services_discovery_AddItem
,
(
services_discovery_t
*
p_this
,
input_item_t
*
p_item
,
const
char
*
psz_category
)
);
...
...
modules/services_discovery/bonjour.c
View file @
64fb2cd1
...
...
@@ -282,8 +282,6 @@ static int Open( vlc_object_t *p_this )
goto
error
;
}
services_discovery_SetLocalizedName
(
p_sd
,
_
(
"Bonjour"
)
);
return
VLC_SUCCESS
;
error:
...
...
modules/services_discovery/hal.c
View file @
64fb2cd1
...
...
@@ -145,8 +145,6 @@ static int Open( vlc_object_t *p_this )
if
(
vlc_clone
(
&
p_sys
->
thread
,
Run
,
p_this
,
VLC_THREAD_PRIORITY_LOW
)
)
goto
error
;
services_discovery_SetLocalizedName
(
p_sd
,
_
(
"Devices"
)
);
return
VLC_SUCCESS
;
error:
dbus_error_free
(
&
dbus_error
);
...
...
modules/services_discovery/podcast.c
View file @
64fb2cd1
...
...
@@ -123,8 +123,6 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_update
=
true
;
p_sd
->
p_sys
=
p_sys
;
/* Give us a name */
services_discovery_SetLocalizedName
(
p_sd
,
_
(
"Podcasts"
)
);
/* Launch the callback associated with this variable */
var_Create
(
p_sd
,
"podcast-urls"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
...
...
modules/services_discovery/sap.c
View file @
64fb2cd1
...
...
@@ -320,9 +320,6 @@ static int Open( vlc_object_t *p_this )
/* Cache sap_timeshift value */
p_sys
->
b_timeshift
=
var_CreateGetInteger
(
p_sd
,
"sap-timeshift"
);
/* Set our name */
services_discovery_SetLocalizedName
(
p_sd
,
_
(
"SAP"
)
);
p_sys
->
i_announces
=
0
;
p_sys
->
pp_announces
=
NULL
;
/* TODO: create sockets here, and fix racy sockets table */
...
...
modules/services_discovery/shout.c
View file @
64fb2cd1
...
...
@@ -153,7 +153,6 @@ struct services_discovery_sys_t
static
int
Open
(
vlc_object_t
*
p_this
,
enum
type_e
i_type
)
{
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_SetLocalizedName
(
p_sd
,
_
(
p_items
[
i_type
].
psz_name
)
);
p_sd
->
p_sys
=
malloc
(
sizeof
(
*
(
p_sd
->
p_sys
)));
if
(
p_sd
->
p_sys
==
NULL
)
...
...
modules/services_discovery/upnp_cc.cpp
View file @
64fb2cd1
...
...
@@ -125,8 +125,6 @@ static int Open( vlc_object_t *p_this )
{
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_SetLocalizedName
(
p_sd
,
_
(
"Devices"
)
);
UPnPHandler
*
u
=
new
UPnPHandler
(
p_sd
);
u
->
start
(
);
msg_Dbg
(
p_sd
,
"upnp discovery started"
);
...
...
modules/services_discovery/upnp_intel.cpp
View file @
64fb2cd1
...
...
@@ -90,8 +90,6 @@ static int Open( vlc_object_t *p_this )
if
(
!
(
p_sd
->
p_sys
=
p_sys
))
return
VLC_ENOMEM
;
services_discovery_SetLocalizedName
(
p_sd
,
_
(
"UPnP devices"
)
);
res
=
UpnpInit
(
0
,
0
);
if
(
res
!=
UPNP_E_SUCCESS
)
{
...
...
src/libvlccore.sym
View file @
64fb2cd1
...
...
@@ -322,7 +322,6 @@ services_discovery_EventManager
services_discovery_GetLocalizedName
__services_discovery_GetServicesNames
services_discovery_RemoveItem
services_discovery_SetLocalizedName
services_discovery_Start
services_discovery_Stop
sout_AccessOutControl
...
...
src/playlist/services_discovery.c
View file @
64fb2cd1
...
...
@@ -64,7 +64,6 @@ services_discovery_Create ( vlc_object_t * p_super, const char * psz_module_name
if
(
!
p_sd
)
return
NULL
;
p_sd
->
psz_localized_name
=
strdup
(
"Unnamed service discovery"
);
// FIXME: Set that back to NULL
p_sd
->
psz_module
=
strdup
(
psz_module_name
);
vlc_event_manager_init
(
&
p_sd
->
event_manager
,
p_sd
,
(
vlc_object_t
*
)
p_sd
);
...
...
@@ -141,10 +140,7 @@ static void services_discovery_Destructor ( services_discovery_t * p_sd )
assert
(
!
p_sd
->
p_module
);
/* Forgot to call Stop */
vlc_event_manager_fini
(
&
p_sd
->
event_manager
);
free
(
p_sd
->
psz_module
);
free
(
p_sd
->
psz_localized_name
);
vlc_object_release
(
p_sd
);
}
...
...
@@ -154,17 +150,7 @@ static void services_discovery_Destructor ( services_discovery_t * p_sd )
char
*
services_discovery_GetLocalizedName
(
services_discovery_t
*
p_sd
)
{
return
p_sd
->
psz_localized_name
?
strdup
(
p_sd
->
psz_localized_name
)
:
NULL
;
}
/***********************************************************************
* SetLocalizedName
***********************************************************************/
void
services_discovery_SetLocalizedName
(
services_discovery_t
*
p_sd
,
const
char
*
psz
)
{
free
(
p_sd
->
psz_localized_name
);
p_sd
->
psz_localized_name
=
strdup
(
psz
);
return
strdup
(
module_get_name
(
p_sd
->
p_module
,
true
)
);
}
/***********************************************************************
...
...
@@ -308,15 +294,6 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modu
if
(
!
p_sd
)
continue
;
/* FIXME: Thanks to previous changeset this is broken */
char
*
psz
=
services_discovery_GetLocalizedName
(
p_sd
);
assert
(
psz
);
PL_LOCK
;
playlist_NodesPairCreate
(
p_playlist
,
psz
,
&
p_cat
,
&
p_one
,
false
);
PL_UNLOCK
;
free
(
psz
);
vlc_event_attach
(
services_discovery_EventManager
(
p_sd
),
vlc_ServicesDiscoveryItemAdded
,
playlist_sd_item_added
,
...
...
@@ -343,7 +320,15 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modu
vlc_object_release
(
p_sd
);
return
VLC_EGENERIC
;
}
char
*
psz
=
services_discovery_GetLocalizedName
(
p_sd
);
assert
(
psz
);
PL_LOCK
;
playlist_NodesPairCreate
(
p_playlist
,
psz
,
&
p_cat
,
&
p_one
,
false
);
PL_UNLOCK
;
free
(
psz
);
/* Free in playlist_ServicesDiscoveryRemove */
p_sds
=
malloc
(
sizeof
(
struct
playlist_services_discovery_support_t
)
);
if
(
!
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