From bd55be76b949a97e07df111092b4ac86c553dbfd Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 30 Mar 2003 22:16:47 +0000 Subject: [PATCH] opening/closing files and devices is done on NULL <-> READY Original commit message from CVS: opening/closing files and devices is done on NULL <-> READY --- ext/cdparanoia/gstcdparanoia.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/cdparanoia/gstcdparanoia.c b/ext/cdparanoia/gstcdparanoia.c index e4e4f7f421..470e270525 100644 --- a/ext/cdparanoia/gstcdparanoia.c +++ b/ext/cdparanoia/gstcdparanoia.c @@ -734,22 +734,23 @@ cdparanoia_change_state (GstElement *element) switch (GST_STATE_TRANSITION (element)) { case GST_STATE_NULL_TO_READY: - break; - case GST_STATE_READY_TO_PAUSED: if (!cdparanoia_open (CDPARANOIA (element))) { g_warning ("cdparanoia: failed opening cd"); return GST_STATE_FAILURE; } cdparanoia->seq = 0; break; + case GST_STATE_READY_TO_PAUSED: + break; case GST_STATE_PAUSED_TO_PLAYING: break; case GST_STATE_PLAYING_TO_PAUSED: break; case GST_STATE_PAUSED_TO_READY: - cdparanoia_close (CDPARANOIA (element)); + /* FIXME: Need code here to reset element to start of cd */ break; case GST_STATE_READY_TO_NULL: + cdparanoia_close (CDPARANOIA (element)); break; default: break;