Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8ca4ff01
Commit
8ca4ff01
authored
Mar 27, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check memory allocation
parent
7179862e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/services_discovery/hal.c
modules/services_discovery/hal.c
+6
-3
No files found.
modules/services_discovery/hal.c
View file @
8ca4ff01
...
...
@@ -101,6 +101,8 @@ static int Open( vlc_object_t *p_this )
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_sys_t
*
p_sys
=
malloc
(
sizeof
(
services_discovery_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
#ifdef HAVE_HAL_1
DBusError
dbus_error
;
...
...
@@ -202,12 +204,13 @@ static void AddItem( services_discovery_t *p_sd, input_item_t * p_input
struct
udi_input_id_t
*
p_udi_entry
;
p_udi_entry
=
malloc
(
sizeof
(
struct
udi_input_id_t
)
);
if
(
!
p_udi_entry
)
{
return
;
}
p_udi_entry
->
psz_udi
=
strdup
(
psz_device
);
if
(
!
p_udi_entry
->
psz_udi
)
return
;
vlc_gc_incref
(
p_input
);
p_udi_entry
->
p_item
=
p_input
;
p_udi_entry
->
psz_udi
=
strdup
(
psz_device
);
TAB_APPEND
(
p_sys
->
i_devices_number
,
p_sys
->
pp_devices
,
p_udi_entry
);
#endif
}
...
...
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