tensor_repo.c::gst_tensor_repo_add_repodata, unlock should be used
before return.
Resolves: #933
**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped
Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
gpointer check = g_hash_table_lookup (_repo.hash, GINT_TO_POINTER (nth));
if (check != NULL) {
+ GST_REPO_UNLOCK ();
return TRUE;
}
GST_TENSOR_REPO_LOCK (nth);
GstTensorRepoData *data = gst_tensor_repo_get_repodata (nth);
- g_return_val_if_fail (data != NULL, FALSE);
+
+ if (data == NULL) {
+ GST_TENSOR_REPO_UNLOCK (nth);
+ return FALSE;
+ }
data->buffer = buffer;
if (DBG) {
GstBuffer *buf;
gboolean eos = FALSE;
- current_data = gst_tensor_repo_get_repodata (nth);
GST_TENSOR_REPO_LOCK (nth);
+ current_data = gst_tensor_repo_get_repodata (nth);
+
while (!current_data->buffer) {
if (gst_tensor_repo_check_eos (nth)) {
eos = TRUE;
self = GST_TENSOR_REPOSRC (src);
gst_tensor_repo_wait ();
- if (gst_tensor_repo_check_eos (self->myid)) {
- return GST_FLOW_EOS;
- }
if (!self->ini) {
int i;