[mythtv-commits] mythtv/master commit: 09dad5d4d by Mark Kendall (mark-kendall)
MythTV
noreply at mythtv.org
Tue Jan 25 01:29:47 UTC 2011
Author: Mark Kendall <mkendall at mythtv.org>
Change Date: 2011-01-24T17:29:35-08:00
Push Date: 2011/01/24 17:29:45 -0800
Repository: mythtv
Branch: master
New Revision: 09dad5d4d3ab34d7d0453eee1f7aaf1662fa62a9
Changeset: https://github.com/MythTV/mythtv/commit/09dad5d4d
Log:
mythiowrapper: Add callback funtionality to mythfile_open.
This will be used by BDRingBuffer (and possibly DVDRingBuffer) to get
progress updates.
When we open a bluray disc structure, we have one instance of
BDRingBuffer that creates a bluray access object and initialises it.
That initialisation will perform many separate file open calls that are
effectively hidden from the main ringbuffer instance. With potentially
several hundred files to open, BDRingBuffer::OpenFile can block for
several minutes. The callback will be used for UI updates so that the
user receives some form of visual feedback that the frontend is still
working.
N.B. only one callback can currently be registered at a time. This is
not ideal but should suffice for the time being. Any concurrent attempts
to register for callbacks will fail but will only result in no UI
updates.
Modified:
mythtv/libs/libmythtv/mythiowrapper.cpp
mythtv/libs/libmythtv/mythiowrapper.h
More information about the mythtv-commits
mailing list