@@ -993,11 +993,10 @@ def updateStatus(self, *args):
993993 self .volume = '' .join (c for c in sp [- 1 ].split ()[0 ] if c .isdigit ())
994994
995995 self_show_volume = self .show_volume
996- with recording_lock :
997- self_oldUserInput_Title = self .oldUserInput ['Title' ]
998- # IMPORTANT: do this here, so that vlc actual_volume
999- # gets updated in _format_volume_string
1000- string_to_show = self ._format_volume_string (subsystemOut ) + self ._format_title_string (self .oldUserInput ['Title' ])
996+ self_oldUserInput_Title = self .oldUserInput ['Title' ]
997+ # IMPORTANT: do this here, so that vlc actual_volume
998+ # gets updated in _format_volume_string
999+ string_to_show = self ._format_volume_string (subsystemOut ) + self ._format_title_string (self .oldUserInput ['Title' ])
10011000
10021001 if self_show_volume and self_oldUserInput_Title :
10031002 self .outputStream .write (msg_id = STATES .VOLUME , msg = string_to_show , counter = '' )
@@ -4007,9 +4006,7 @@ def _win_show_vlc_volume(self):
40074006 pvol = int (100 * self .actual_volume / self .max_volume )
40084007 if pvol > 0 :
40094008 avol = '[' + M_STRINGS ['vol_' ] + f'{ pvol } %] '
4010- with recording_lock :
4011- title = self .oldUserInput ['Title' ]
4012- if self .show_volume and title :
4009+ if self .show_volume and self .oldUserInput ['Title' ]:
40134010 self .outputStream .write (msg_id = STATES .VOLUME , msg = avol + self .oldUserInput ['Title' ], counter = '' )
40144011 self .threadUpdateTitle ()
40154012
0 commit comments