decklinksrc: For the source, unsetting the callback already deletes it

This commit is contained in:
Sebastian Dröge 2014-11-28 15:06:42 +01:00
parent 820894a871
commit c180012d02

View file

@ -558,8 +558,8 @@ gst_decklink_src_stop (GstElement * element)
decklinksrc->input->DisableVideoInput ();
decklinksrc->input->DisableAudioInput ();
/* This deletes the delegate for us already */
decklinksrc->input->SetCallback (NULL);
delete decklinksrc->delegate;
decklinksrc->delegate = NULL;
g_list_free_full (decklinksrc->pending_events,