Commit 395cdfc1 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* misc/sap.c: check for packetsize attribute and increase mtu when it's large.

  - some code cleanup. Please watch coding style people.
* demux/sgimb.c: fix an alloc
parent 56bafe47
...@@ -328,9 +328,9 @@ static int Demux ( demux_t *p_demux ) ...@@ -328,9 +328,9 @@ static int Demux ( demux_t *p_demux )
if( p_sys->i_packet_size && p_sys->psz_mcast_ip ) if( p_sys->i_packet_size && p_sys->psz_mcast_ip )
{ {
char *psz_option = (char *) malloc( 20 ); char *psz_option;
p_sys->i_packet_size += 1000; p_sys->i_packet_size += 1000;
sprintf( psz_option, "mtu=%i", p_sys->i_packet_size ); asprintf( &psz_option, "mtu=%i", p_sys->i_packet_size );
playlist_ItemAddOption( p_item, psz_option ); playlist_ItemAddOption( p_item, psz_option );
free( psz_option ); free( psz_option );
} }
......
This diff is collapsed.
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