mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
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
This commit is contained in:
parent
4272238399
commit
bd55be76b9
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue