puzzle about source code src/misc/block.c

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
NEW CONE

puzzle about source code src/misc/block.c

Postby NEW CONE » 14 Mar 2006 07:49

vlc-0.8.4a
file: src/misc/block.c
see the red italic ,line 154:
-----------------------------
block_fifo_t *__block_FifoNew( vlc_object_t *p_obj )
{
block_fifo_t *p_fifo;

p_fifo = malloc( sizeof( vlc_object_t ) );
vlc_mutex_init( p_obj, &p_fifo->lock );
vlc_cond_init( p_obj, &p_fifo->wait );
p_fifo->i_depth = p_fifo->i_size = 0;
p_fifo->p_first = NULL;
p_fifo->pp_last = &p_fifo->p_first;

return p_fifo;
}
-----------------------------
why malloc a 'vlc_object_t ' structure ?

with regards

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 14 Mar 2006 14:05

Good question ... This seems to be a mistake. I'll fix it.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

NEW CONE

Postby NEW CONE » 15 Mar 2006 04:20

thanks,

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 15 Mar 2006 15:35

Might i ask how you noticed this ?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 69 guests