v4l2: fix double-unref in the v4l2 device provider
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 28 Oct 2015 18:17:30 +0000 (23:47 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 28 Oct 2015 19:09:28 +0000 (19:09 +0000)
sys/v4l2/gstv4l2deviceprovider.c

index 8e366d4..63329e6 100644 (file)
@@ -365,7 +365,6 @@ gst_v4l2_device_provider_stop (GstDeviceProvider * provider)
   g_main_context_unref (context);
 
   g_thread_join (self->thread);
-  g_thread_unref (self->thread);
   self->thread = NULL;
   self->started = FALSE;
 }