Skip to content

Commit

Permalink
Merge branch 'android-sync-too-many-open-files' into 'master'
Browse files Browse the repository at this point in the history
Fix "too many open files" error during track transfer to device

See merge request GNOME/rhythmbox!110
  • Loading branch information
Jonathan Matthew committed Apr 3, 2021
2 parents 8e69acd + bccb25e commit 6bb7ff5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backends/gstreamer/rb-encoder-gst.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,6 @@ sink_open (GTask *task, gpointer source_object, gpointer task_data, GCancellable
_("Could not create a temporary file to write to: %s"),
error->message);
g_task_return_error (task, error);
g_object_unref (task);
return;
}

Expand Down Expand Up @@ -708,7 +707,6 @@ sink_open (GTask *task, gpointer source_object, gpointer task_data, GCancellable
} else {
g_task_return_boolean (task, TRUE);
}
g_object_unref (task);
}

static void
Expand Down Expand Up @@ -762,6 +760,7 @@ impl_encode (RBEncoder *bencoder,

task = g_task_new (encoder, encoder->priv->open_cancel, sink_open_cb, NULL);
g_task_run_in_thread (task, sink_open);
g_object_unref (task);
}
}

Expand Down

0 comments on commit 6bb7ff5

Please sign in to comment.