Commit 791b55cf authored by Olivier Aubert's avatar Olivier Aubert

src/control/mediacontrol_audio_video.c: to create a generic object,

its size should be passed to vlc_object_create (instead of VLC_OBJECT_GENERIC)
parent 2641ceae
......@@ -76,7 +76,7 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
{
RAISE_NULL( mediacontrol_InternalException, "No video output" );
}
p_cache = vlc_object_create( p_input, VLC_OBJECT_GENERIC );
p_cache = vlc_object_create( p_input, sizeof( vlc_object_t ) );
if( p_cache == NULL )
{
vlc_object_release( p_vout );
......
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