[vlc-devel] commit: UDP out: avoid useless references to p_sout ( Rémi Denis-Courmont )
git version control
git at videolan.org
Fri Aug 29 17:52:58 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Fri Aug 29 17:41:50 2008 +0300| [560ccaae6d32302eb8b913b3c07a3335df917576] | committer: Rémi Denis-Courmont
UDP out: avoid useless references to p_sout
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=560ccaae6d32302eb8b913b3c07a3335df917576
---
modules/access_output/udp.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/access_output/udp.c b/modules/access_output/udp.c
index 7d3b5c7..8319e68 100644
--- a/modules/access_output/udp.c
+++ b/modules/access_output/udp.c
@@ -121,8 +121,6 @@ typedef struct sout_access_thread_t
{
VLC_COMMON_MEMBERS
- sout_instance_t *p_sout;
-
block_fifo_t *p_fifo;
int i_handle;
@@ -204,7 +202,6 @@ static int Open( vlc_object_t *p_this )
}
vlc_object_attach( p_sys->p_thread, p_access );
- p_sys->p_thread->p_sout = p_access->p_sout;
p_sys->p_thread->b_die = 0;
p_sys->p_thread->b_error= 0;
p_sys->p_thread->p_fifo = block_FifoNew();
@@ -254,7 +251,7 @@ static int Open( vlc_object_t *p_this )
if( vlc_thread_create( p_sys->p_thread, "sout write thread", ThreadWrite,
VLC_THREAD_PRIORITY_HIGHEST, false ) )
{
- msg_Err( p_access->p_sout, "cannot spawn sout access thread" );
+ msg_Err( p_access, "cannot spawn sout access thread" );
net_Close (i_handle);
vlc_object_release( p_sys->p_thread );
free (p_sys);
@@ -418,7 +415,7 @@ static block_t *NewUDPPacket( sout_access_out_t *p_access, mtime_t i_dts)
if( block_FifoCount( p_sys->p_thread->p_empty_blocks ) == 0 )
{
- p_buffer = block_New( p_access->p_sout, p_sys->i_mtu );
+ p_buffer = block_Alloc( p_sys->i_mtu );
}
else
{
More information about the vlc-devel
mailing list