[vlc-commits] dbus: Fix the CanSeek property getter

Sean Robinson git at videolan.org
Sun Aug 26 19:06:39 CEST 2012


vlc/vlc-2.0 | branch: master | Sean Robinson <seankrobinson at gmail.com> | Sun Apr 15 18:51:46 2012 -0700| [605bf8c3efd59f2d9da8a3882808509cd4b65f00] | committer: Jean-Baptiste Kempf

dbus: Fix the CanSeek property getter

Close the D-Bus message when sending the value of the CanSeek property
in the Player object.

Signed-off-by: Mirsal Ennaime <mirsal at videolan.org>
(cherry picked from commit bc2987f3e14694a90bae1c8b3aaede8519a950a3)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=605bf8c3efd59f2d9da8a3882808509cd4b65f00
---

 modules/control/dbus/dbus_player.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/control/dbus/dbus_player.c b/modules/control/dbus/dbus_player.c
index d12907e..e134cbf 100644
--- a/modules/control/dbus/dbus_player.c
+++ b/modules/control/dbus/dbus_player.c
@@ -420,6 +420,9 @@ DBUS_METHOD( CanSeek )
 
     MarshalCanSeek( p_this, &v );
 
+    if( !dbus_message_iter_close_container( &args, &v ) )
+        return DBUS_HANDLER_RESULT_NEED_MEMORY;
+
     REPLY_SEND;
 }
 



More information about the vlc-commits mailing list