@@ -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" ; 
@@ -321,7 +321,7 @@ async fn get_setup() -> Setup {
321321    #[ cfg( feature = "passthrough-decoder" ) ]  
322322    const  PASSTHROUGH_SHORT :  & str  = "P" ; 
323323    const  PASSWORD_SHORT :  & str  = "p" ; 
324-     const  POSITION_UPDATE_SHORT :  & str  = "" ;  // no short flag 
324+     const  POSITION_UPDATE_INTERVAL_SHORT :  & str  = "" ;  // no short flag 
325325    const  EMIT_SINK_EVENTS_SHORT :  & str  = "Q" ; 
326326    const  QUIET_SHORT :  & str  = "q" ; 
327327    const  INITIAL_VOLUME_SHORT :  & str  = "R" ; 
@@ -633,9 +633,9 @@ async fn get_setup() -> Setup {
633633        "KNEE" , 
634634    ) 
635635    . optopt ( 
636-         POSITION_UPDATE_SHORT , 
637-         POSITION_UPDATE , 
638-         "Update position  interval in ms" , 
636+         POSITION_UPDATE_INTERVAL_SHORT , 
637+         POSITION_UPDATE_INTERVAL , 
638+         "Maximum  interval in ms for player to send a position event. 0 means no forced update. Defaults to 0. " , 
639639        "POSITION_UPDATE" , 
640640    ) 
641641    . optopt ( 
@@ -1813,21 +1813,21 @@ async fn get_setup() -> Setup {
18131813            } , 
18141814        } ; 
18151815
1816-         let  position_update_interval = opt_str ( POSITION_UPDATE ) . as_deref ( ) . map ( |position_update|  { 
1817-             match  position_update. parse :: < u64 > ( )  { 
1816+         let  position_update_interval = opt_str ( POSITION_UPDATE_INTERVAL ) . as_deref ( ) . map ( 
1817+             |position_update|  match  position_update. parse :: < u64 > ( )  { 
18181818                Ok ( value)  => Duration :: from_millis ( value) , 
18191819                _ => { 
18201820                    invalid_error_msg ( 
1821-                         POSITION_UPDATE , 
1822-                         POSITION_UPDATE_SHORT , 
1821+                         POSITION_UPDATE_INTERVAL , 
1822+                         POSITION_UPDATE_INTERVAL_SHORT , 
18231823                        position_update, 
18241824                        "Integer value in ms" , 
18251825                        "None" , 
18261826                    ) ; 
18271827                    exit ( 1 ) ; 
18281828                } 
1829-             } 
1830-         } ) ; 
1829+             } , 
1830+         ) ; 
18311831
18321832        #[ cfg( feature = "passthrough-decoder" ) ]  
18331833        let  passthrough = opt_present ( PASSTHROUGH ) ; 
0 commit comments