set pipeline to ready on EOS

This commit is contained in:
Brandon Lewis 2010-08-03 15:17:25 +02:00 committed by Edward Hervey
parent f11057246c
commit b05e5534df

View file

@ -768,6 +768,7 @@ bus_message_cb (GstBus * bus, GstMessage * message, App * app)
g_print ("ERROR\n"); g_print ("ERROR\n");
break; break;
case GST_MESSAGE_EOS: case GST_MESSAGE_EOS:
gst_element_set_state (GST_ELEMENT (app->pipeline), GST_STATE_READY);
break; break;
case GST_MESSAGE_STATE_CHANGED: case GST_MESSAGE_STATE_CHANGED:
if (s && GST_MESSAGE_SRC (message) == GST_OBJECT_CAST (app->pipeline)) { if (s && GST_MESSAGE_SRC (message) == GST_OBJECT_CAST (app->pipeline)) {