mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
Moved the typedef to gsttypes.h as stock rh 7.2 gcc doesn't seem to like it otherwise.
Original commit message from CVS: Moved the typedef to gsttypes.h as stock rh 7.2 gcc doesn't seem to like it otherwise.
This commit is contained in:
parent
eb45d89cfb
commit
2c9d646895
2 changed files with 14 additions and 19 deletions
|
@ -38,23 +38,6 @@ extern "C" {
|
|||
|
||||
#define GST_NUM_STATES 4
|
||||
|
||||
//typedef enum _GstElementState GstElementState;
|
||||
//typedef enum _GstElementStateReturn GstElementStateReturn;
|
||||
|
||||
|
||||
enum _GstElementState {
|
||||
GST_STATE_VOID_PENDING = 0,
|
||||
GST_STATE_NULL = (1 << 0),
|
||||
GST_STATE_READY = (1 << 1),
|
||||
GST_STATE_PAUSED = (1 << 2),
|
||||
GST_STATE_PLAYING = (1 << 3),
|
||||
};
|
||||
|
||||
enum _GstElementStateReturn {
|
||||
GST_STATE_FAILURE = 0,
|
||||
GST_STATE_SUCCESS = 1,
|
||||
GST_STATE_ASYNC = 2,
|
||||
};
|
||||
|
||||
/* NOTE: this probably should be done with an #ifdef to decide
|
||||
* whether to safe-cast or to just do the non-checking cast.
|
||||
|
|
|
@ -15,7 +15,19 @@ typedef struct _GstScheduler GstScheduler;
|
|||
typedef struct _GstSchedulerClass GstSchedulerClass;
|
||||
typedef struct _GstEvent GstEvent;
|
||||
|
||||
typedef enum _GstElementState GstElementState;
|
||||
typedef enum _GstElementStateReturn GstElementStateReturn;
|
||||
typedef enum {
|
||||
GST_STATE_VOID_PENDING = 0,
|
||||
GST_STATE_NULL = (1 << 0),
|
||||
GST_STATE_READY = (1 << 1),
|
||||
GST_STATE_PAUSED = (1 << 2),
|
||||
GST_STATE_PLAYING = (1 << 3),
|
||||
} GstElementState;
|
||||
|
||||
typedef enum {
|
||||
GST_STATE_FAILURE = 0,
|
||||
GST_STATE_SUCCESS = 1,
|
||||
GST_STATE_ASYNC = 2,
|
||||
} GstElementStateReturn;
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue