decklinksink: Don't crash when going to READY another time
authorSebastian Dröge <sebastian@centricular.com>
Fri, 28 Nov 2014 13:46:06 +0000 (14:46 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 28 Nov 2014 13:51:52 +0000 (14:51 +0100)
commit2a0123d79a86b4d22a147cebf5cdb9c80158ef87
treedb9b29a0fda722e58d8b4d3d9cf68db1f7161e99
parent06013a0a6ce2634eb12d8d4a3a1b4df6e0a15c2f
decklinksink: Don't crash when going to READY another time

We have to handle the callback object a bit different:
a) it needs a virtual destructor
b) we need to set the callback to NULL when we're done with the output
c) create a new one every time

https://bugzilla.gnome.org/show_bug.cgi?id=740616
sys/decklink/gstdecklinksink.cpp
sys/decklink/gstdecklinksink.h