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

Sean Robinson git at videolan.org
Tue Apr 17 16:32:42 CEST 2012


vlc | branch: master | Sean Robinson <seankrobinson at gmail.com> | Sun Apr 15 18:51:46 2012 -0700| [bc2987f3e14694a90bae1c8b3aaede8519a950a3] | committer: Mirsal Ennaime

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>

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

 modules/control/dbus/dbus_player.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/control/dbus/dbus_player.c b/modules/control/dbus/dbus_player.c
index 0bd238f..4aa255a 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