[mythtv-commits] Ticket #12144: Save volume only on TV Player exit (optimize DB usage)

MythTV noreply at mythtv.org
Fri May 16 08:46:42 UTC 2014


#12144: Save volume only on TV Player exit (optimize DB usage)
---------------------------------------+-------------------------------
     Reporter:  angela.schmid@…        |      Owner:  jyavenard
         Type:  Patch - Feature        |     Status:  new
     Priority:  minor                  |  Milestone:  unknown
    Component:  MythTV - Audio Output  |    Version:  0.27-fixes
     Severity:  low                    |   Keywords:  mysql volume save
Ticket locked:  0                      |
---------------------------------------+-------------------------------
 Saving the volume to the DB on each volume change is unnecessary.
 To optimize DB usage, the patch saves the volume only on exit of the TV
 Player (TV::PrepareToExitPlayer).

 There was also a small bug:
 On each volume change in the TV Player the volume is saved twice when
 software volume is configured:

 In libs/libmyth/audio/volumebase.cpp VolumeBase::SetCurrentVolume
 - Calls UpdateVolume, which calls SetSWVolume, when software volume is
 configured it saves
 - the save in SetCurrentVolume itself

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12144>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list