File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,33 @@ pub async fn pkt_modify_hook(
365
365
svc. media_sink_service . as_mut ( ) . unwrap ( ) . video_configs [ 0 ]
366
366
. set_density ( dpi. into ( ) ) ;
367
367
info ! (
368
- "{} <yellow>{:?}</>: replacing DPI value: from <b>{}</> to <b>{}</>" ,
368
+ "{} <yellow>{:?}</>: replacing DPI[0] value: from <b>{}</> to <b>{}</>" ,
369
+ get_name( proxy_type) ,
370
+ control. unwrap( ) ,
371
+ prev_val,
372
+ dpi
373
+ ) ;
374
+
375
+ // get previous/original value
376
+ let prev_val = svc. media_sink_service . video_configs [ 1 ] . density ( ) ;
377
+ // set new value
378
+ svc. media_sink_service . as_mut ( ) . unwrap ( ) . video_configs [ 1 ]
379
+ . set_density ( dpi. into ( ) ) ;
380
+ info ! (
381
+ "{} <yellow>{:?}</>: replacing DPI[1] value: from <b>{}</> to <b>{}</>" ,
382
+ get_name( proxy_type) ,
383
+ control. unwrap( ) ,
384
+ prev_val,
385
+ dpi
386
+ ) ;
387
+
388
+ // get previous/original value
389
+ let prev_val = svc. media_sink_service . video_configs [ 2 ] . density ( ) ;
390
+ // set new value
391
+ svc. media_sink_service . as_mut ( ) . unwrap ( ) . video_configs [ 2 ]
392
+ . set_density ( dpi. into ( ) ) ;
393
+ info ! (
394
+ "{} <yellow>{:?}</>: replacing DPI[2] value: from <b>{}</> to <b>{}</>" ,
369
395
get_name( proxy_type) ,
370
396
control. unwrap( ) ,
371
397
prev_val,
You can’t perform that action at this time.
0 commit comments