]> git.sesse.net Git - mlt/commit
fix decklink producer dropping frames after few hours
authorDan Dennedy <dan@dennedy.org>
Wed, 30 May 2012 03:40:11 +0000 (20:40 -0700)
committerDan Dennedy <dan@dennedy.org>
Wed, 30 May 2012 03:40:11 +0000 (20:40 -0700)
commitc3664acf3b7b79b51264f5d7cab95dc1f2e0fb09
tree33cdab761151fbfbe9c064132336730d9586e701
parent114d13353c986ca3d307eef7f353f41f6fecfcb1
fix decklink producer dropping frames after few hours

mlt_cache_put() was not scalable when using position as a key into the
cache. Its reliance upon mlt_properties for reference-counting cache
items caused its hash tabe to grow too large after a few hundred
thousand frames. This version uses the new mlt_cache_put_frame, which is
simpler and more scalable by only using the cache arrays and copying
data.
src/modules/decklink/producer_decklink.cpp