Do not set the pipeline to NULL on EOS, as parse_launch pipelines are not reusable.

This commit is contained in:
Xavi Artigas 2012-09-17 13:31:24 +02:00
parent 0b6448389a
commit 392705a913

View file

@ -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) {