mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
validate: Print when we set pipeline state because of buffering
This commit is contained in:
parent
f4db183b2b
commit
161610c26e
1 changed files with 2 additions and 0 deletions
|
@ -144,11 +144,13 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer data)
|
|||
/* a 100% message means buffering is done */
|
||||
if (buffering) {
|
||||
buffering = FALSE;
|
||||
g_print ("Done buffering, setting pipeline to PLAYING\n");
|
||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||
}
|
||||
} else {
|
||||
/* buffering... */
|
||||
if (!buffering) {
|
||||
g_print ("Start buffering, setting pipeline to PAUSED\n");
|
||||
gst_element_set_state (pipeline, GST_STATE_PAUSED);
|
||||
buffering = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue