Commit 6882d773 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Remove trailing whitespace

parent 223dadeb
...@@ -89,7 +89,7 @@ struct access_sys_t ...@@ -89,7 +89,7 @@ struct access_sys_t
int i_mtu; int i_mtu;
vlc_bool_t b_auto_mtu; vlc_bool_t b_auto_mtu;
/* rtp only */ /* rtp only */
int i_sequence_number; int i_sequence_number;
}; };
...@@ -158,7 +158,6 @@ static int Open( vlc_object_t *p_this ) ...@@ -158,7 +158,6 @@ static int Open( vlc_object_t *p_this )
i_bind_port = atoi( psz_parser ); i_bind_port = atoi( psz_parser );
} }
} }
} }
psz_server_addr = psz_name; psz_server_addr = psz_name;
...@@ -226,7 +225,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -226,7 +225,7 @@ static int Open( vlc_object_t *p_this )
/* Keep track of RTP sequence number */ /* Keep track of RTP sequence number */
p_sys->i_sequence_number = -1; p_sys->i_sequence_number = -1;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -329,10 +328,10 @@ static block_t *BlockParseRTP( access_t *p_access, block_t *p_block ) ...@@ -329,10 +328,10 @@ static block_t *BlockParseRTP( access_t *p_access, block_t *p_block )
int i_payload_type; int i_payload_type;
int i_skip = 0; int i_skip = 0;
int i_sequence_number = 0; int i_sequence_number = 0;
if( p_block == NULL ) if( p_block == NULL )
return NULL; return NULL;
if( p_block->i_buffer < RTP_HEADER_LEN ) if( p_block->i_buffer < RTP_HEADER_LEN )
goto trash; goto trash;
...@@ -360,13 +359,13 @@ static block_t *BlockParseRTP( access_t *p_access, block_t *p_block ) ...@@ -360,13 +359,13 @@ static block_t *BlockParseRTP( access_t *p_access, block_t *p_block )
/* Return the packet without the RTP header. */ /* Return the packet without the RTP header. */
p_block->i_buffer -= i_skip; p_block->i_buffer -= i_skip;
p_block->p_buffer += i_skip; p_block->p_buffer += i_skip;
#define RTP_SEQ_NUM_SIZE 65536 #define RTP_SEQ_NUM_SIZE 65536
/* Detect RTP packet loss through tracking sequence numbers. /* Detect RTP packet loss through tracking sequence numbers.
* See RFC 1889. */ * See RFC 1889. */
if( p_access->p_sys->i_sequence_number == -1 ) if( p_access->p_sys->i_sequence_number == -1 )
p_access->p_sys->i_sequence_number = i_sequence_number; p_access->p_sys->i_sequence_number = i_sequence_number;
if( ((p_access->p_sys->i_sequence_number + 1) % RTP_SEQ_NUM_SIZE) != i_sequence_number ) if( ((p_access->p_sys->i_sequence_number + 1) % RTP_SEQ_NUM_SIZE) != i_sequence_number )
{ {
msg_Warn( p_access, "RTP packet(s) lost, expected sequence number %d got %d", msg_Warn( p_access, "RTP packet(s) lost, expected sequence number %d got %d",
......
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