]> git.sesse.net Git - vlc/blobdiff - src/libvlc.c
Qt: on startup, if there is no input, show the cone
[vlc] / src / libvlc.c
index 51d555c986dba6509a50114f36aeb36e59fa2a0a..2f07f4e4a74f189f4920b2846ca6282f7244d53c 100644 (file)
@@ -146,7 +146,7 @@ void *vlc_hold (gc_object_t * p_gc)
 {
     uintptr_t refs;
     assert( p_gc );
-    assert ((((uintptr_t)&refs) & (sizeof (void *) - 1)) == 0); /* alignment */
+    assert ((((uintptr_t)&p_gc->refs) & (sizeof (void *) - 1)) == 0); /* alignment */
 
 #if defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
     refs = __sync_add_and_fetch (&p_gc->refs, 1);
@@ -174,7 +174,7 @@ void vlc_release (gc_object_t *p_gc)
     unsigned refs;
 
     assert( p_gc );
-    assert ((((uintptr_t)&refs) & (sizeof (void *) - 1)) == 0); /* alignment */
+    assert ((((uintptr_t)&p_gc->refs) & (sizeof (void *) - 1)) == 0); /* alignment */
 
 #if defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
     refs = __sync_sub_and_fetch (&p_gc->refs, 1);