We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6d9526 commit f440c63Copy full SHA for f440c63
1 file changed
gst/gstaravis.c
@@ -462,17 +462,21 @@ gst_aravis_stop( GstBaseSrc * src )
462
{
463
GError *error = NULL;
464
GstAravis* gst_aravis = GST_ARAVIS(src);
465
+ ArvCamera *camera;
466
ArvStream *stream;
467
GstCaps *all_caps;
468
469
GST_OBJECT_LOCK (gst_aravis);
470
arv_camera_stop_acquisition (gst_aravis->camera, &error);
471
+ camera = g_steal_pointer (&gst_aravis->camera);
472
stream = g_steal_pointer (&gst_aravis->stream);
473
all_caps = g_steal_pointer (&gst_aravis->all_caps);
474
GST_OBJECT_UNLOCK (gst_aravis);
475
476
if (stream != NULL)
477
g_object_unref (stream);
478
+ if (camera != NULL)
479
+ g_object_unref (camera);
480
if (all_caps != NULL)
481
gst_caps_unref (all_caps);
482
0 commit comments