[multicat-devel] [Git][videolan/multicat][master] 2 commits: Only set retx passes (and print the count) when retx will actually happen

Christophe Massiot (@cmassiot) gitlab at videolan.org
Wed Feb 7 13:32:00 UTC 2024



Christophe Massiot pushed to branch master at VideoLAN / multicat


Commits:
88f5e5bd by David Evans at 2022-11-21T15:14:35+00:00
Only set retx passes (and print the count) when retx will actually happen

- - - - -
4927a87d by Christophe Massiot at 2024-02-07T13:31:58+00:00
Merge branch 'NbRetx' into 'master'

Only set retx passes (and print the count) when retx will actually happen

See merge request videolan/multicat!1
- - - - -


1 changed file:

- reordertp.c


Changes:

=====================================
reordertp.c
=====================================
@@ -603,11 +603,11 @@ int main( int i_argc, char **pp_argv )
     }
     msg_Dbg( NULL, "%d inputs", i_nb_inputs );
 
-    i_nb_retx = (i_buffer_length - MIN_RETX_DELAY) / i_retx_delay;
+    i_nb_retx = i_retx_fd != -1 ? (i_buffer_length - MIN_RETX_DELAY) / i_retx_delay : 0;
     pp_retx = malloc( i_nb_retx * sizeof(block_t *) );
     for ( i = 0; i < i_nb_retx; i++ )
         pp_retx[i] = NULL;
-    if ( i_retx_fd && i_nb_retx )
+    if ( i_retx_fd != -1 && i_nb_retx )
         msg_Dbg( NULL, "%d retx passes", i_nb_retx );
 
     i_output_fd = OpenSocket( pp_argv[optind], i_ttl, 0, DEFAULT_PORT, NULL,



View it on GitLab: https://code.videolan.org/videolan/multicat/-/compare/5e784d4b0436143ae63f1f2c38f30f027fa9a776...4927a87d8f47d6f2189f9fe996aa53f0a0fc4e53

-- 
View it on GitLab: https://code.videolan.org/videolan/multicat/-/compare/5e784d4b0436143ae63f1f2c38f30f027fa9a776...4927a87d8f47d6f2189f9fe996aa53f0a0fc4e53
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the multicat-devel mailing list