mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 07:08:23 +00:00
- added GstEventMask to specify event masks (next set of commits)
Original commit message from CVS: - added GstEventMask to specify event masks (next set of commits) - use flags for seek methods (for use in masks) - removed #if 0 from gstmemchunk.h
This commit is contained in:
parent
de12c3557a
commit
cb04a141e3
2 changed files with 15 additions and 9 deletions
|
@ -64,11 +64,21 @@ extern GType _gst_event_type;
|
|||
#define GST_SEEK_METHOD_MASK 0x000f0000
|
||||
#define GST_SEEK_FLAGS_MASK 0xfff00000
|
||||
|
||||
/* seek events */
|
||||
typedef enum {
|
||||
GST_SEEK_METHOD_CUR = (1 << GST_SEEK_METHOD_SHIFT),
|
||||
GST_SEEK_METHOD_SET = (2 << GST_SEEK_METHOD_SHIFT),
|
||||
GST_SEEK_METHOD_END = (3 << GST_SEEK_METHOD_SHIFT),
|
||||
GST_EVENT_FLAG_NONE = 0
|
||||
} GstEventFlag;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GstEventType type;
|
||||
GstEventFlag flags;
|
||||
} GstEventMask;
|
||||
|
||||
/* seek events, extends GstEventFlag */
|
||||
typedef enum {
|
||||
GST_SEEK_METHOD_CUR = (1 << (GST_SEEK_METHOD_SHIFT + 0)),
|
||||
GST_SEEK_METHOD_SET = (1 << (GST_SEEK_METHOD_SHIFT + 1)),
|
||||
GST_SEEK_METHOD_END = (1 << (GST_SEEK_METHOD_SHIFT + 2)),
|
||||
|
||||
GST_SEEK_FLAG_FLUSH = (1 << (GST_SEEK_FLAGS_SHIFT + 0)),
|
||||
GST_SEEK_FLAG_ACCURATE = (1 << (GST_SEEK_FLAGS_SHIFT + 1)),
|
||||
|
|
|
@ -36,11 +36,7 @@ struct _GstMemChunkElement
|
|||
|
||||
struct _GstMemChunk
|
||||
{
|
||||
#if 0
|
||||
volatile GstMemChunkElement *free; /* the first free element */
|
||||
volatile gulong cnt; /* used to avoid ABA problem */
|
||||
#endif
|
||||
GstAtomicSwap swap;
|
||||
GstAtomicSwap swap;
|
||||
|
||||
gchar *name;
|
||||
gulong area_size;
|
||||
|
|
Loading…
Reference in a new issue