mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Do not set the pipeline to NULL on EOS, as parse_launch pipelines are not reusable.
This commit is contained in:
parent
0b6448389a
commit
392705a913
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,8 @@ static void error_cb (GstBus *bus, GstMessage *msg, CustomData *data) {
|
|||
static void eos_cb (GstBus *bus, GstMessage *msg, CustomData *data) {
|
||||
set_message (GST_MESSAGE_TYPE_NAME (msg), data);
|
||||
refresh_ui (data);
|
||||
gst_element_set_state (data->pipeline, GST_STATE_NULL);
|
||||
gst_element_set_state (data->pipeline, GST_STATE_PAUSED);
|
||||
execute_seek (0, data);
|
||||
}
|
||||
|
||||
static void state_changed_cb (GstBus *bus, GstMessage *msg, CustomData *data) {
|
||||
|
|
Loading…
Reference in a new issue