[vlc-devel] rtp streaming---recv returns segfault
Rémi Denis-Courmont
rdenis at simphalempin.com
Sat Sep 29 13:41:52 CEST 2007
Le Saturday 29 September 2007 09:24:18 Anand Anand, vous avez écrit :
> i then tried to receive packets by doing the following:
> /*
> p_block->i_buffer = recv(fd, p_block->p_buffer, i_mtu, 0 ) ;
> */
>
> but a segfault occurs at the recv call..
First, recv() CANNOT crash on Linux. System calls don't crash; they return an
EFAULT error instead.
Second, you most obviously did not allocate p_block properly:
p_block = block_New( p_this, i_mtu );
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list