@@ -275,7 +275,7 @@ async fn get_setup() -> Setup {
275
275
#[ cfg( feature = "passthrough-decoder" ) ]
276
276
const PASSTHROUGH : & str = "passthrough" ;
277
277
const PASSWORD : & str = "password" ;
278
- const POSITION_UPDATE : & str = "position-update" ;
278
+ const POSITION_UPDATE_INTERVAL : & str = "position-update-interval " ;
279
279
const PROXY : & str = "proxy" ;
280
280
const QUIET : & str = "quiet" ;
281
281
const SYSTEM_CACHE : & str = "system-cache" ;
@@ -321,7 +321,7 @@ async fn get_setup() -> Setup {
321
321
#[ cfg( feature = "passthrough-decoder" ) ]
322
322
const PASSTHROUGH_SHORT : & str = "P" ;
323
323
const PASSWORD_SHORT : & str = "p" ;
324
- const POSITION_UPDATE_SHORT : & str = "" ; // no short flag
324
+ const POSITION_UPDATE_INTERVAL_SHORT : & str = "" ; // no short flag
325
325
const EMIT_SINK_EVENTS_SHORT : & str = "Q" ;
326
326
const QUIET_SHORT : & str = "q" ;
327
327
const INITIAL_VOLUME_SHORT : & str = "R" ;
@@ -633,9 +633,9 @@ async fn get_setup() -> Setup {
633
633
"KNEE" ,
634
634
)
635
635
. 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. Defaults to no forced position update. " ,
639
639
"POSITION_UPDATE" ,
640
640
)
641
641
. optopt (
@@ -1813,21 +1813,21 @@ async fn get_setup() -> Setup {
1813
1813
} ,
1814
1814
} ;
1815
1815
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 > ( ) {
1818
1818
Ok ( value) => Duration :: from_millis ( value) ,
1819
1819
_ => {
1820
1820
invalid_error_msg (
1821
- POSITION_UPDATE ,
1822
- POSITION_UPDATE_SHORT ,
1821
+ POSITION_UPDATE_INTERVAL ,
1822
+ POSITION_UPDATE_INTERVAL_SHORT ,
1823
1823
position_update,
1824
1824
"Integer value in ms" ,
1825
1825
"None" ,
1826
1826
) ;
1827
1827
exit ( 1 ) ;
1828
1828
}
1829
- }
1830
- } ) ;
1829
+ } ,
1830
+ ) ;
1831
1831
1832
1832
#[ cfg( feature = "passthrough-decoder" ) ]
1833
1833
let passthrough = opt_present ( PASSTHROUGH ) ;
0 commit comments