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

picture_Hold: add an assertion

parent 28375c83
......@@ -284,7 +284,8 @@ picture_t *picture_New( vlc_fourcc_t i_chroma, int i_width, int i_height, int i_
picture_t *picture_Hold( picture_t *p_picture )
{
atomic_fetch_add( &p_picture->gc.refcount, 1 );
uintptr_t refs = atomic_fetch_add( &p_picture->gc.refcount, 1 );
assert( refs > 0 );
return p_picture;
}
......
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