convertframe: Fix async video sample conversion with non-default context
authorArun Raghavan <arun@arunraghavan.net>
Mon, 20 Mar 2017 11:50:36 +0000 (17:20 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Mon, 20 Mar 2017 11:53:58 +0000 (17:23 +0530)
commita6742e81b90e39823d933fe89e6f75231cc64ec1
tree9610de016d85609d23afe9ff9791a23117985bf6
parent587c417d895a7943d90bef9ea47a497378989118
convertframe: Fix async video sample conversion with non-default context

The GSource for dealing with timeouts in
gst_video_convert_sample_async() might be attached to a non-default
context, so we should not be using g_source_remove() on the returned ID.

The correct thing to do is to keep a reference to the actual GSource and
then call g_source_destroy() on it.

https://bugzilla.gnome.org/show_bug.cgi?id=780297
gst-libs/gst/video/convertframe.c