[vlc-devel] [vlc-commits] commit: Qt4: reset current_index cache sametime as i_cache_id ( Ilkka Ollakka )

Ilkka Ollakka ileoo at videolan.org
Thu Jun 24 16:42:11 CEST 2010

On Thu, Jun 24, 2010 at 03:45:33PM +0300, Ilkka Ollakka wrote:
> On Wed, Jun 23, 2010 at 06:36:21PM +0200, Jakob Leben wrote:

> > A QModelIndex can become invalid even in case when cached PLItem is still
> > valid. For example on D&D move. QModelIndex is not permanent, so would be
> > better to not cache it at all. If anything, input_item_t * should be cached.

> Yep, youre right. Actually I tried to overcome data( ) const restrain as
> I couldn't use currentIndex()/findById in there. But seems more and more
> that this isn't the good way to implement it either.

Actually one approach would be to remove CACHE-usage from findInner, it
would slow it down littlebit but not really sure how big playlist you
would need that it would be noticeable delay.

Ilkka Ollakka
When I said "we", officer, I was referring to myself, the four young
ladies, and, of course, the goat.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100624/daf9d38c/attachment.sig>

More information about the vlc-devel mailing list