@@ -275,7 +275,7 @@ async fn get_setup() -> Setup {
275275 #[ cfg( feature = "passthrough-decoder" ) ]
276276 const PASSTHROUGH : & str = "passthrough" ;
277277 const PASSWORD : & str = "password" ;
278- const POSITION_UPDATE : & str = "position-update" ;
278+ const POSITION_UPDATE_INTERVAL : & str = "position-update-interval " ;
279279 const PROXY : & str = "proxy" ;
280280 const QUIET : & str = "quiet" ;
281281 const SYSTEM_CACHE : & str = "system-cache" ;
@@ -322,7 +322,7 @@ async fn get_setup() -> Setup {
322322 #[ cfg( feature = "passthrough-decoder" ) ]
323323 const PASSTHROUGH_SHORT : & str = "P" ;
324324 const PASSWORD_SHORT : & str = "p" ;
325- const POSITION_UPDATE_SHORT : & str = "" ; // no short flag
325+ const POSITION_UPDATE_INTERVAL_SHORT : & str = "" ; // no short flag
326326 const EMIT_SINK_EVENTS_SHORT : & str = "Q" ;
327327 const QUIET_SHORT : & str = "q" ;
328328 const INITIAL_VOLUME_SHORT : & str = "R" ;
@@ -635,9 +635,9 @@ async fn get_setup() -> Setup {
635635 "KNEE" ,
636636 )
637637 . optopt (
638- POSITION_UPDATE_SHORT ,
639- POSITION_UPDATE ,
640- "Update position interval in ms" ,
638+ POSITION_UPDATE_INTERVAL_SHORT ,
639+ POSITION_UPDATE_INTERVAL ,
640+ "Maximum interval in ms for player to send a position event. Defaults to no forced position update. " ,
641641 "POSITION_UPDATE" ,
642642 )
643643 . optopt (
@@ -1826,21 +1826,21 @@ async fn get_setup() -> Setup {
18261826 } ,
18271827 } ;
18281828
1829- let position_update_interval = opt_str ( POSITION_UPDATE ) . as_deref ( ) . map ( |position_update| {
1830- match position_update. parse :: < u64 > ( ) {
1829+ let position_update_interval = opt_str ( POSITION_UPDATE_INTERVAL ) . as_deref ( ) . map (
1830+ |position_update| match position_update. parse :: < u64 > ( ) {
18311831 Ok ( value) => Duration :: from_millis ( value) ,
18321832 _ => {
18331833 invalid_error_msg (
1834- POSITION_UPDATE ,
1835- POSITION_UPDATE_SHORT ,
1834+ POSITION_UPDATE_INTERVAL ,
1835+ POSITION_UPDATE_INTERVAL_SHORT ,
18361836 position_update,
18371837 "Integer value in ms" ,
18381838 "None" ,
18391839 ) ;
18401840 exit ( 1 ) ;
18411841 }
1842- }
1843- } ) ;
1842+ } ,
1843+ ) ;
18441844
18451845 #[ cfg( feature = "passthrough-decoder" ) ]
18461846 let passthrough = opt_present ( PASSTHROUGH ) ;
0 commit comments