]> git.sesse.net Git - vlc/commitdiff
src/control/mediacontrol_audio_video.c: to create a generic object,
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Mon, 30 Jun 2008 17:51:49 +0000 (19:51 +0200)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Mon, 30 Jun 2008 17:51:49 +0000 (19:51 +0200)
its size should be passed to vlc_object_create (instead of VLC_OBJECT_GENERIC)

src/control/mediacontrol_audio_video.c

index 2006c0d111f796a5812f6ccea5aac2c95f7d19d8..047f05fe4898b04c25d4713d53ca00d870fa4099 100644 (file)
@@ -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 );