Skip to content

Commit

Permalink
GstEnginePipeline: Always set state to NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Nov 9, 2024
1 parent 64a9d55 commit a0dd2c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/engine/gstenginepipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,8 @@ GstEnginePipeline::~GstEnginePipeline() {
Disconnect();

if (pipeline_) {
if (state() != GST_STATE_NULL) {
gst_element_set_state(pipeline_, GST_STATE_NULL);
}

gst_element_set_state(pipeline_, GST_STATE_NULL);

GstElement *audiobin = nullptr;
g_object_get(GST_OBJECT(pipeline_), "audio-sink", &audiobin, nullptr);
Expand Down

0 comments on commit a0dd2c6

Please sign in to comment.