Skip to content

Commit

Permalink
video player: Transition to READY before NULL
Browse files Browse the repository at this point in the history
Docs say it shouldn't make a difference, though in #370 it was reported
to resolve a memory leak on iMX6.
  • Loading branch information
ardera committed Dec 14, 2023
1 parent 8f4e972 commit f6c7ca2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/gstreamer_video_player/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@ static void maybe_deinit(struct gstplayer *player) {
player->bus = NULL;
}
if (player->pipeline != NULL) {
gst_element_set_state(GST_ELEMENT(player->pipeline), GST_STATE_READY);
gst_element_set_state(GST_ELEMENT(player->pipeline), GST_STATE_NULL);
gst_object_unref(GST_OBJECT(player->pipeline));
player->pipeline = NULL;
Expand Down

0 comments on commit f6c7ca2

Please sign in to comment.