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
19da2519
Commit
19da2519
authored
Apr 24, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: remove evil intractable macro, fix memory leak
parent
b54f2c63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
modules/control/dbus/dbus_root.c
modules/control/dbus/dbus_root.c
+3
-15
No files found.
modules/control/dbus/dbus_root.c
View file @
19da2519
...
...
@@ -446,17 +446,6 @@ handle_root ( DBusConnection *p_conn, DBusMessage *p_from, void *p_this )
* PropertiesChangedSignal() synthetizes and sends the
* org.freedesktop.DBus.Properties.PropertiesChanged signal
*/
#define PROPERTY_MAPPING_BEGIN if( 0 ) {}
#define PROPERTY_ENTRY( prop, signature ) \
else if( !strcmp( ppsz_properties[i], #prop ) ) \
{ \
if( VLC_SUCCESS != AddProperty( (intf_thread_t*) p_intf, \
&changed_properties, #prop, signature, Marshal##prop ) ) \
return DBUS_HANDLER_RESULT_NEED_MEMORY; \
}
#define PROPERTY_MAPPING_END else { return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; }
static
DBusHandlerResult
PropertiesChangedSignal
(
intf_thread_t
*
p_intf
,
vlc_dictionary_t
*
p_changed_properties
)
...
...
@@ -489,10 +478,9 @@ PropertiesChangedSignal( intf_thread_t *p_intf,
for
(
int
i
=
0
;
i
<
i_properties
;
i
++
)
{
PROPERTY_MAPPING_BEGIN
PROPERTY_ENTRY
(
Fullscreen
,
"b"
)
PROPERTY_MAPPING_END
if
(
!
strcmp
(
ppsz_properties
[
i
],
"Fullscreen"
)
)
AddProperty
(
p_intf
,
&
changed_properties
,
"Fullscreen"
,
"b"
,
MarshalFullscreen
);
free
(
ppsz_properties
[
i
]
);
}
free
(
ppsz_properties
);
...
...
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