Only shallow copy when filtering a playlist.
authorW. Trevor King <wking@drexel.edu>
Thu, 11 Nov 2010 13:13:09 +0000 (08:13 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 11 Nov 2010 13:13:09 +0000 (08:13 -0500)
commitcf4346a398bd5107aca7c1d5b6e99d81bb4a1d9e
tree3984094d86bd35dde589255d59e5908e9a601c19
parent328f08fcf7658a22d876ccf0dc7aca0ef9feea64
Only shallow copy when filtering a playlist.

We should iterate through the base playlist, because iterating over a
playlist that's having items removed is poorly defined.  However, if
were iterating through the input playlist and removing items from the
copy, we need a shallow copy so the item ids still match.  Curves can
belong to several playlists, so shallow copies are ok.

Another problem with the old version was that the _index was being
updated in the copy, not the current curve, so the
current_curve_callback() bit was *not* working.
hooke/playlist.py