[mythtv-commits] Ticket #736: Move Decoder lock/unlock from mutex into Decoder and small fixes to playbackbox

MythTV mythtv at cvs.mythtv.org
Wed Nov 30 19:43:07 EST 2005


#736: Move Decoder lock/unlock from mutex into Decoder and small fixes to
playbackbox
------------------------------------+---------------------------------------
 Reporter:  eskil <myth at eskil.org>  |       Owner:  ijr
     Type:  patch                   |      Status:  new
 Priority:  minor                   |   Milestone:     
Component:  mythmusic               |     Version:     
 Severity:  medium                  |  
------------------------------------+---------------------------------------
Another patch to keep the shoutcast patch small. The main part of this
 patch is moving locking/unlocking of a decoder up to be a method in
 Decoder. This means that code like ;

 {{{decoder->mutex()->lock();}}}

 becomes

 {{{decoder->lock();}}}

 The purpose is to allow decoders to do special things on locking. Ie. the
 shoutcast decoder will have two locks (it's own and the decoder it's
 using).

 And some changes to playbackbox.
  * Don't display total time if playing something that has no total time
  * add a updateTrackInfo that updates the UI elements and the LCD (when
 streaming the metadata will change during playback).
  * move opening the output out to a seperate method, just to keep
 {{{PlaybackBox::play()}}} simpler.

 Also indent streaminput.cpp.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/736>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list