gtk-doc fixes clock debug

Original commit message from CVS:
gtk-doc fixes
clock debug
This commit is contained in:
Thomas Vander Stichele 2003-05-15 22:46:37 +00:00
parent 22c2af5de1
commit 2565248558
5 changed files with 12 additions and 9 deletions

View file

@ -78,7 +78,7 @@ enum
enum enum
{ {
ARG_0, ARG_0
/* FILL ME */ /* FILL ME */
}; };

View file

@ -38,7 +38,7 @@ static GstAllocTrace *_gst_clock_entry_trace;
enum { enum {
ARG_0, ARG_0,
ARG_STATS, ARG_STATS,
ARG_MAX_DIFF, ARG_MAX_DIFF
}; };
static GstMemChunk *_gst_clock_entries_chunk; static GstMemChunk *_gst_clock_entries_chunk;
@ -166,6 +166,7 @@ gst_clock_id_wait (GstClockID id, GstClockTimeDiff *jitter)
requested = GST_CLOCK_ENTRY_TIME (entry); requested = GST_CLOCK_ENTRY_TIME (entry);
if (! GST_CLOCK_TIME_IS_VALID (requested)) { if (! GST_CLOCK_TIME_IS_VALID (requested)) {
GST_DEBUG (GST_CAT_CLOCK, "invalid time requested, returning _TIMEOUT");
return GST_CLOCK_TIMEOUT; return GST_CLOCK_TIMEOUT;
} }
@ -179,10 +180,12 @@ gst_clock_id_wait (GstClockID id, GstClockTimeDiff *jitter)
clock->entries = g_list_prepend (clock->entries, entry); clock->entries = g_list_prepend (clock->entries, entry);
GST_UNLOCK (clock); GST_UNLOCK (clock);
GST_DEBUG (GST_CAT_CLOCK, "waiting on clock");
do { do {
res = cclass->wait (clock, entry); res = cclass->wait (clock, entry);
} }
while (res == GST_CLOCK_ENTRY_RESTART); while (res == GST_CLOCK_ENTRY_RESTART);
GST_DEBUG (GST_CAT_CLOCK, "done waiting");
GST_LOCK (clock); GST_LOCK (clock);
clock->entries = g_list_remove (clock->entries, entry); clock->entries = g_list_remove (clock->entries, entry);

View file

@ -69,13 +69,13 @@ typedef enum {
/* --- protected --- */ /* --- protected --- */
GST_CLOCK_ENTRY_OK, GST_CLOCK_ENTRY_OK,
GST_CLOCK_ENTRY_EARLY, GST_CLOCK_ENTRY_EARLY,
GST_CLOCK_ENTRY_RESTART, GST_CLOCK_ENTRY_RESTART
} GstClockEntryStatus; } GstClockEntryStatus;
typedef enum { typedef enum {
/* --- protected --- */ /* --- protected --- */
GST_CLOCK_ENTRY_SINGLE, GST_CLOCK_ENTRY_SINGLE,
GST_CLOCK_ENTRY_PERIODIC, GST_CLOCK_ENTRY_PERIODIC
} GstClockEntryType; } GstClockEntryType;
#define GST_CLOCK_ENTRY(entry) ((GstClockEntry *)(entry)) #define GST_CLOCK_ENTRY(entry) ((GstClockEntry *)(entry))
@ -112,7 +112,7 @@ typedef enum
GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC = (1 << 3), GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC = (1 << 3),
GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC = (1 << 4), GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC = (1 << 4),
GST_CLOCK_FLAG_CAN_SET_RESOLUTION = (1 << 5), GST_CLOCK_FLAG_CAN_SET_RESOLUTION = (1 << 5),
GST_CLOCK_FLAG_CAN_SET_SPEED = (1 << 6), GST_CLOCK_FLAG_CAN_SET_SPEED = (1 << 6)
} GstClockFlags; } GstClockFlags;
#define GST_CLOCK_FLAGS(clock) (GST_CLOCK(clock)->flags) #define GST_CLOCK_FLAGS(clock) (GST_CLOCK(clock)->flags)

View file

@ -52,13 +52,13 @@ typedef enum {
GST_INDEX_ENTRY_ID, GST_INDEX_ENTRY_ID,
GST_INDEX_ENTRY_ASSOCIATION, GST_INDEX_ENTRY_ASSOCIATION,
GST_INDEX_ENTRY_OBJECT, GST_INDEX_ENTRY_OBJECT,
GST_INDEX_ENTRY_FORMAT, GST_INDEX_ENTRY_FORMAT
} GstIndexEntryType; } GstIndexEntryType;
typedef enum { typedef enum {
GST_INDEX_LOOKUP_EXACT, GST_INDEX_LOOKUP_EXACT,
GST_INDEX_LOOKUP_BEFORE, GST_INDEX_LOOKUP_BEFORE,
GST_INDEX_LOOKUP_AFTER, GST_INDEX_LOOKUP_AFTER
} GstIndexLookupMethod; } GstIndexLookupMethod;
#define GST_INDEX_NASSOCS(entry) ((entry)->data.assoc.nassocs) #define GST_INDEX_NASSOCS(entry) ((entry)->data.assoc.nassocs)
@ -78,7 +78,7 @@ typedef enum {
GST_ASSOCIATION_FLAG_KEY_UNIT = (1 << 0), GST_ASSOCIATION_FLAG_KEY_UNIT = (1 << 0),
/* new flags should start here */ /* new flags should start here */
GST_ASSOCIATION_FLAG_LAST = (1 << 8), GST_ASSOCIATION_FLAG_LAST = (1 << 8)
} GstAssocFlags; } GstAssocFlags;
#define GST_INDEX_FORMAT_FORMAT(entry) ((entry)->data.format.format) #define GST_INDEX_FORMAT_FORMAT(entry) ((entry)->data.format.format)

View file

@ -72,7 +72,7 @@ void gst_trace_read_tsc (gint64 *dst);
typedef enum typedef enum
{ {
GST_ALLOC_TRACE_LIVE = (1 << 0), GST_ALLOC_TRACE_LIVE = (1 << 0),
GST_ALLOC_TRACE_MEM_LIVE = (1 << 1), GST_ALLOC_TRACE_MEM_LIVE = (1 << 1)
} GstAllocTraceFlags; } GstAllocTraceFlags;
typedef struct _GstAllocTrace GstAllocTrace; typedef struct _GstAllocTrace GstAllocTrace;