From 012dfb8b33969b582f9132ac9f95402b3098ff43 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 5 Sep 2005 17:20:29 +0000 Subject: Fix up all the state change functions. Original commit message from CVS: Fix up all the state change functions. --- examples/gstplay/player.c | 2 +- examples/stats/mp2ogg.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/gstplay/player.c b/examples/gstplay/player.c index e0bdd413..76453785 100644 --- a/examples/gstplay/player.c +++ b/examples/gstplay/player.c @@ -158,7 +158,7 @@ main (int argc, char *argv[]) /* Change state to PLAYING */ if (gst_element_set_state (GST_ELEMENT (play), - GST_STATE_PLAYING) == GST_STATE_FAILURE) + GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) g_error ("Could not set state to PLAYING"); g_timeout_add (20000, (GSourceFunc) seek_timer, play); diff --git a/examples/stats/mp2ogg.c b/examples/stats/mp2ogg.c index f62fe5d4..d39323ca 100644 --- a/examples/stats/mp2ogg.c +++ b/examples/stats/mp2ogg.c @@ -59,7 +59,8 @@ main (gint argc, gchar * argv[]) dec_sink = gst_element_get_pad (decoder, "sink"); enc_src = gst_element_get_pad (encoder, "src"); - if (gst_element_set_state (pipeline, GST_STATE_PLAYING) != GST_STATE_SUCCESS) { + if (gst_element_set_state (pipeline, + GST_STATE_PLAYING) != GST_STATE_CHANGE_SUCCESS) { g_print ("pipeline doesn't want to play\n"); return -1; } -- cgit v1.2.1