Commit 75de9dcc authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

dbus: Add missing error check

CID #1211816
parent d192a702
......@@ -466,8 +466,14 @@ PropertiesChangedSignal( intf_thread_t *p_intf,
return DBUS_HANDLER_RESULT_NEED_MEMORY;
if( vlc_dictionary_has_key( p_changed_properties, "Fullscreen" ) )
AddProperty( p_intf, &changed_properties, "Fullscreen", "b",
MarshalFullscreen );
{
if( AddProperty( p_intf, &changed_properties, "Fullscreen", "b",
MarshalFullscreen ) != VLC_SUCCESS )
{
dbus_message_iter_abandon_container( &args, &changed_properties );
return DBUS_HANDLER_RESULT_NEED_MEMORY;
}
}
if( !dbus_message_iter_close_container( &args, &changed_properties ) )
return DBUS_HANDLER_RESULT_NEED_MEMORY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment