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
fa9d4d05
Commit
fa9d4d05
authored
Mar 27, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DBus: remove unused macro, check memory allocation
parent
678f97a6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
modules/control/dbus.c
modules/control/dbus.c
+14
-4
modules/control/dbus.h
modules/control/dbus.h
+0
-1
No files found.
modules/control/dbus.c
View file @
fa9d4d05
...
@@ -136,10 +136,20 @@ DBUS_METHOD( MprisVersion )
...
@@ -136,10 +136,20 @@ DBUS_METHOD( MprisVersion )
dbus_uint16_t
i_minor
=
VLC_MPRIS_VERSION_MINOR
;
dbus_uint16_t
i_minor
=
VLC_MPRIS_VERSION_MINOR
;
DBusMessageIter
version
;
DBusMessageIter
version
;
dbus_message_iter_open_container
(
&
args
,
DBUS_TYPE_STRUCT
,
NULL
,
&
version
);
if
(
!
dbus_message_iter_open_container
(
&
args
,
DBUS_TYPE_STRUCT
,
NULL
,
dbus_message_iter_append_basic
(
&
version
,
DBUS_TYPE_UINT16
,
&
i_major
);
&
version
)
)
dbus_message_iter_append_basic
(
&
version
,
DBUS_TYPE_UINT16
,
&
i_minor
);
return
DBUS_HANDLER_RESULT_NEED_MEMORY
;
dbus_message_iter_close_container
(
&
args
,
&
version
);
if
(
!
dbus_message_iter_append_basic
(
&
version
,
DBUS_TYPE_UINT16
,
&
i_major
)
)
return
DBUS_HANDLER_RESULT_NEED_MEMORY
;
if
(
!
dbus_message_iter_append_basic
(
&
version
,
DBUS_TYPE_UINT16
,
&
i_minor
)
)
return
DBUS_HANDLER_RESULT_NEED_MEMORY
;
if
(
!
dbus_message_iter_close_container
(
&
args
,
&
version
)
)
return
DBUS_HANDLER_RESULT_NEED_MEMORY
;
REPLY_SEND
;
REPLY_SEND
;
}
}
...
...
modules/control/dbus.h
View file @
fa9d4d05
...
@@ -80,7 +80,6 @@
...
@@ -80,7 +80,6 @@
#define ADD_BOOL( b ) DBUS_ADD( DBUS_TYPE_BOOLEAN, b )
#define ADD_BOOL( b ) DBUS_ADD( DBUS_TYPE_BOOLEAN, b )
#define ADD_INT32( i ) DBUS_ADD( DBUS_TYPE_INT32, i )
#define ADD_INT32( i ) DBUS_ADD( DBUS_TYPE_INT32, i )
#define ADD_BYTE( b ) DBUS_ADD( DBUS_TYPE_BYTE, b )
#define ADD_BYTE( b ) DBUS_ADD( DBUS_TYPE_BYTE, b )
#define ADD_UINT16( i ) DBUS_ADD( DBUS_TYPE_UINT16, i )
/* XML data to answer org.freedesktop.DBus.Introspectable.Introspect requests */
/* XML data to answer org.freedesktop.DBus.Introspectable.Introspect requests */
...
...
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