[mythtv-commits] mythtv commit: r15029 - in trunk/mythtv by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Mon Dec 3 19:27:31 UTC 2007


      Author: danielk
        Date: 2007-12-03 19:27:31 +0000 (Mon, 03 Dec 2007)
New Revision: 15029
   Changeset: http://cvs.mythtv.org/trac/changeset/15029

Modified:

   trunk/mythtv/libs/libmythtv/previewgenerator.cpp
   trunk/mythtv/libs/libmythtv/previewgenerator.h
   trunk/mythtv/libs/libmythtv/storagegroup.cpp
   trunk/mythtv/libs/libmythtv/storagegroup.h
   trunk/mythtv/libs/libmythtv/tv_play.cpp
   trunk/mythtv/libs/libmythtv/tv_play.h
   trunk/mythtv/programs/mythbackend/encoderlink.cpp
   trunk/mythtv/programs/mythbackend/encoderlink.h
   trunk/mythtv/programs/mythbackend/main.cpp
   trunk/mythtv/programs/mythbackend/mainserver.cpp
   trunk/mythtv/programs/mythbackend/mythxml.cpp
   trunk/mythtv/programs/mythbackend/mythxml.h
   trunk/mythtv/programs/mythbackend/playbacksock.cpp
   trunk/mythtv/programs/mythbackend/playbacksock.h
   trunk/mythtv/programs/mythfrontend/networkcontrol.cpp
   trunk/mythtv/programs/mythfrontend/playbackbox.cpp
   trunk/mythtv/programs/mythfrontend/playbackbox.h

Log:

Refs #3361. Improves Preview Generation.

 * Implements a priority queue for preview generation and limits the total number of in-flight preview generation threads.
 * Runs preview generator in a separate process so that an ffmpeg crash can't take down the backend or frontend we're using.

Currently the number of preview generation threads is limited to two by the 'previewGeneratorMaxRunning' variable. I haven't yet implemented the third todo, adding user control over various aspects of the preview generation processing.

Note: This also extends the screen shot code to work with remote backends, and fixes a race condition that caused this to crash sometimes. However unless both the backend and frontend are updated to this revision a remote 'screen shot' will just return a copy of the preview image.




More information about the mythtv-commits mailing list