#include "../pyunit.h"
#include <vlc/vlc.h>
-#include <vlc_common.h>
-
struct mygc
{
VLC_GC_MEMBERS;
{
mygc *gc = (mygc *)malloc( sizeof( mygc ) );
- vlc_gc_init( gc, mygc_destructor );
- gc->i_gc_refcount = 0;
-
+ vlc_gc_init( gc, mygc_destructor, NULL );
+ ASSERT( gc->i_gc_refcount == 0, "Refcount should be 0" );
vlc_gc_incref( gc );
ASSERT( gc->i_gc_refcount == 1, "Refcount should be 1" );
vlc_gc_incref( gc );