mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +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 */
|
/* a 100% message means buffering is done */
|
||||||
if (buffering) {
|
if (buffering) {
|
||||||
buffering = FALSE;
|
buffering = FALSE;
|
||||||
|
g_print ("Done buffering, setting pipeline to PLAYING\n");
|
||||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* buffering... */
|
/* buffering... */
|
||||||
if (!buffering) {
|
if (!buffering) {
|
||||||
|
g_print ("Start buffering, setting pipeline to PAUSED\n");
|
||||||
gst_element_set_state (pipeline, GST_STATE_PAUSED);
|
gst_element_set_state (pipeline, GST_STATE_PAUSED);
|
||||||
buffering = TRUE;
|
buffering = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue