Use g_free

This commit is contained in:
Jonas Kvinge 2020-05-24 23:22:18 +02:00
parent 1f45c78ebb
commit 732be5a34f
1 changed files with 1 additions and 1 deletions

View File

@ -799,7 +799,7 @@ void GstEnginePipeline::ErrorMessageReceived(GstMessage *msg) {
int domain = error->domain;
int code = error->code;
g_error_free(error);
free(debugs);
g_free(debugs);
if (state() == GST_STATE_PLAYING && pipeline_is_initialised_ && next_uri_set_ && (domain == (int)GST_RESOURCE_ERROR || domain == (int)GST_STREAM_ERROR)) {
// A track is still playing and the next uri is not playable. We ignore the error here so it can play until the end.