GstEnginePipeline: Always set state to NULL
This commit is contained in:
parent
64a9d557a4
commit
a0dd2c66e4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue