Commit bbb46819 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dbus: Fix GetAspectRatio() crash and add note for SetVideoPosition().

parent 8b4543fd
...@@ -1312,8 +1312,10 @@ DBUS_METHOD( SetVideoPosition ) ...@@ -1312,8 +1312,10 @@ DBUS_METHOD( SetVideoPosition )
p_vout = input_GetVout( p_input ); p_vout = input_GetVout( p_input );
if( p_vout ) if( p_vout )
{ {
int i_ret; int i_ret = 0;
/* NOTE: this doesn't work when the video output is embedded
* in the main window. Use: vlc --no-embedded
*/
var_SetInteger( p_vout, "video-x", i_x ); var_SetInteger( p_vout, "video-x", i_x );
var_SetInteger( p_vout, "video-y", i_y ); var_SetInteger( p_vout, "video-y", i_y );
i_ret = vout_Control( p_vout, VOUT_SET_POSITION, i_x, i_y); i_ret = vout_Control( p_vout, VOUT_SET_POSITION, i_x, i_y);
...@@ -1360,6 +1362,9 @@ DBUS_METHOD( GetAspectRatio ) ...@@ -1360,6 +1362,9 @@ DBUS_METHOD( GetAspectRatio )
} }
pl_Release( (vlc_object_t*) p_this ); pl_Release( (vlc_object_t*) p_this );
if( !psz_aspect )
psz_aspect = strdup( "default" );
ADD_STRING( &psz_aspect ); ADD_STRING( &psz_aspect );
free( psz_aspect ); free( psz_aspect );
......
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