g_cancellable_release_fd (src->cancellable);
src->made_cancel_fd = FALSE;
}
- g_object_unref (src->cancellable);
- src->cancellable = NULL;
+ g_clear_object (&src->cancellable);
}
static GstFlowReturn
src = GST_UDPSRC (bsrc);
GST_LOG_OBJECT (src, "Flushing");
+ GST_OBJECT_LOCK (src);
g_cancellable_cancel (src->cancellable);
+ GST_OBJECT_UNLOCK (src);
return TRUE;
}
GST_LOG_OBJECT (src, "No longer flushing");
+ GST_OBJECT_LOCK (src);
gst_udpsrc_free_cancellable (src);
gst_udpsrc_create_cancellable (src);
+ GST_OBJECT_UNLOCK (src);
return TRUE;
}