mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
Do some error checking to make this test succeed
Original commit message from CVS: Do some error checking to make this test succeed
This commit is contained in:
parent
2c7ed823e5
commit
cb3a70b7f7
2 changed files with 14 additions and 8 deletions
|
@ -74,10 +74,13 @@ main (gint argc, gchar *argv[])
|
|||
g_print ("Setting thread to play with %d identities\n",
|
||||
i / RUNS_PER_IDENTITY + 1);
|
||||
done = FALSE;
|
||||
gst_element_set_state (thread, GST_STATE_PLAYING);
|
||||
|
||||
if (gst_element_set_state (thread, GST_STATE_PLAYING) == GST_STATE_FAILURE) {
|
||||
g_warning ("failed to go to PLAYING");
|
||||
}
|
||||
else {
|
||||
g_print ("Waiting for thread PLAYING->PAUSED\n");
|
||||
while (!done) /* do nothing */;
|
||||
}
|
||||
running = FALSE;
|
||||
g_print ("Coming out of the main GStreamer loop\n");
|
||||
g_signal_handler_disconnect (G_OBJECT (thread), id);
|
||||
|
|
|
@ -74,10 +74,13 @@ main (gint argc, gchar *argv[])
|
|||
g_print ("Setting thread to play with %d identities\n",
|
||||
i / RUNS_PER_IDENTITY + 1);
|
||||
done = FALSE;
|
||||
gst_element_set_state (thread, GST_STATE_PLAYING);
|
||||
|
||||
if (gst_element_set_state (thread, GST_STATE_PLAYING) == GST_STATE_FAILURE) {
|
||||
g_warning ("failed to go to PLAYING");
|
||||
}
|
||||
else {
|
||||
g_print ("Waiting for thread PLAYING->PAUSED\n");
|
||||
while (!done) /* do nothing */;
|
||||
}
|
||||
running = FALSE;
|
||||
g_print ("Coming out of the main GStreamer loop\n");
|
||||
g_signal_handler_disconnect (G_OBJECT (thread), id);
|
||||
|
|
Loading…
Reference in a new issue