gtk-doc fixes clock debug
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 15 May 2003 22:46:37 +0000 (22:46 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 15 May 2003 22:46:37 +0000 (22:46 +0000)
Original commit message from CVS:
gtk-doc fixes
clock debug

gst/gstbin.c
gst/gstclock.c
gst/gstclock.h
gst/gstindex.h
gst/gsttrace.h

index 26f31e7..726d291 100644 (file)
@@ -78,7 +78,7 @@ enum
 
 enum
 {
-  ARG_0,
+  ARG_0
   /* FILL ME */
 };
 
index 2b82b74..527df3a 100644 (file)
@@ -38,7 +38,7 @@ static GstAllocTrace *_gst_clock_entry_trace;
 enum {
   ARG_0,
   ARG_STATS,
-  ARG_MAX_DIFF,
+  ARG_MAX_DIFF
 };
 
 static GstMemChunk   *_gst_clock_entries_chunk;
@@ -166,6 +166,7 @@ gst_clock_id_wait (GstClockID id, GstClockTimeDiff *jitter)
   requested = GST_CLOCK_ENTRY_TIME (entry);
 
   if (! GST_CLOCK_TIME_IS_VALID (requested)) {
+    GST_DEBUG (GST_CAT_CLOCK, "invalid time requested, returning _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);
     GST_UNLOCK (clock);
 
+    GST_DEBUG (GST_CAT_CLOCK, "waiting on clock");
     do {
       res = cclass->wait (clock, entry);
     }
     while (res == GST_CLOCK_ENTRY_RESTART);
+    GST_DEBUG (GST_CAT_CLOCK, "done waiting");
 
     GST_LOCK (clock);
     clock->entries = g_list_remove (clock->entries, entry);
index c66518c..9968e04 100644 (file)
@@ -69,13 +69,13 @@ typedef enum {
   /* --- protected --- */
   GST_CLOCK_ENTRY_OK,
   GST_CLOCK_ENTRY_EARLY,
-  GST_CLOCK_ENTRY_RESTART,
+  GST_CLOCK_ENTRY_RESTART
 } GstClockEntryStatus;
 
 typedef enum {
   /* --- protected --- */
   GST_CLOCK_ENTRY_SINGLE,
-  GST_CLOCK_ENTRY_PERIODIC,
+  GST_CLOCK_ENTRY_PERIODIC
 } GstClockEntryType;
 
 #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_ASYNC  = (1 << 4),
   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;
 
 #define GST_CLOCK_FLAGS(clock)  (GST_CLOCK(clock)->flags)
index 7d444da..8f423cc 100644 (file)
@@ -52,13 +52,13 @@ typedef enum {
   GST_INDEX_ENTRY_ID,
   GST_INDEX_ENTRY_ASSOCIATION,
   GST_INDEX_ENTRY_OBJECT,
-  GST_INDEX_ENTRY_FORMAT,
+  GST_INDEX_ENTRY_FORMAT
 } GstIndexEntryType;
 
 typedef enum {
   GST_INDEX_LOOKUP_EXACT,
   GST_INDEX_LOOKUP_BEFORE,
-  GST_INDEX_LOOKUP_AFTER,
+  GST_INDEX_LOOKUP_AFTER
 } GstIndexLookupMethod;
 
 #define GST_INDEX_NASSOCS(entry)               ((entry)->data.assoc.nassocs)
@@ -78,7 +78,7 @@ typedef enum {
   GST_ASSOCIATION_FLAG_KEY_UNIT = (1 << 0),
 
   /* new flags should start here */
-  GST_ASSOCIATION_FLAG_LAST    = (1 << 8),
+  GST_ASSOCIATION_FLAG_LAST    = (1 << 8)
 } GstAssocFlags;
 
 #define GST_INDEX_FORMAT_FORMAT(entry)         ((entry)->data.format.format)
index fb84f6f..a97a6dc 100644 (file)
@@ -72,7 +72,7 @@ void          gst_trace_read_tsc              (gint64 *dst);
 typedef enum
 {
   GST_ALLOC_TRACE_LIVE         = (1 << 0),
-  GST_ALLOC_TRACE_MEM_LIVE     = (1 << 1),
+  GST_ALLOC_TRACE_MEM_LIVE     = (1 << 1)
 } GstAllocTraceFlags;
 
 typedef struct _GstAllocTrace  GstAllocTrace;