Commit 6cc4c402 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Object reference leak

(cherry picked from commit 33a042e0)
parent b14e2dc4
...@@ -154,7 +154,8 @@ libvlc_video_take_snapshot( libvlc_media_player_t *p_mi, unsigned num, ...@@ -154,7 +154,8 @@ libvlc_video_take_snapshot( libvlc_media_player_t *p_mi, unsigned num,
var_SetInteger( p_vout, "snapshot-height", i_height ); var_SetInteger( p_vout, "snapshot-height", i_height );
var_SetString( p_vout, "snapshot-path", psz_filepath ); var_SetString( p_vout, "snapshot-path", psz_filepath );
var_SetString( p_vout, "snapshot-format", "png" ); var_SetString( p_vout, "snapshot-format", "png" );
var_TriggerCallback (p_vout, "video-snapshot" ); var_TriggerCallback( p_vout, "video-snapshot" );
vlc_object_release( p_vout );
return 0; return 0;
} }
......
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