Skip to content

Commit

Permalink
gstplayer: some formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ardera committed Jul 12, 2023
1 parent 7e76e08 commit 4afa0a1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/plugins/gstreamer_video_player/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -1158,12 +1158,15 @@ void gstplayer_destroy(struct gstplayer *player) {
notifier_deinit(&player->error_notifier);
maybe_deinit(player);
pthread_mutex_destroy(&player->lock);
if (player->headers != NULL)
if (player->headers != NULL) {
gst_structure_free(player->headers);
if (player->video_uri != NULL)
}
if (player->video_uri != NULL) {
free(player->video_uri);
if (player->pipeline_description != NULL)
}
if (player->pipeline_description != NULL) {
free(player->pipeline_description);
}
frame_interface_unref(player->frame_interface);
texture_destroy(player->texture);
free(player);
Expand Down

0 comments on commit 4afa0a1

Please sign in to comment.