mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
set pipeline to ready on EOS
This commit is contained in:
parent
f11057246c
commit
b05e5534df
1 changed files with 1 additions and 0 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue