[gst-cvs] gstreamer: systemclock: these warnings are serious, give more detail in the message

Stefan Kost ensonic at kemper.freedesktop.org
Sun Mar 15 14:44:41 PDT 2009


Module: gstreamer
Branch: master
Commit: 73953055afd831e1f5e667ae0f4755058e5e15ba
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=73953055afd831e1f5e667ae0f4755058e5e15ba

Author: Stefan Kost <ensonic at users.sf.net>
Date:   Sun Mar 15 23:40:36 2009 +0200

systemclock: these warnings are serious, give more detail in the message

---

 gst/gstsystemclock.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gst/gstsystemclock.c b/gst/gstsystemclock.c
index e5eaa81..bc4fe2b 100644
--- a/gst/gstsystemclock.c
+++ b/gst/gstsystemclock.c
@@ -43,6 +43,8 @@
 #include "gstsystemclock.h"
 #include "gstpoll.h"
 
+#include <errno.h>
+
 /* Define this to get some extra debug about jitter from each clock_wait */
 #undef WAIT_DEBUGGING
 
@@ -322,7 +324,9 @@ gst_system_clock_wakeup_async_unlocked (GstSystemClock * sysclock)
   GST_CAT_DEBUG (GST_CAT_CLOCK, "writing control");
 
   while (!gst_poll_write_control (sysclock->priv->timer)) {
-    g_warning ("gstsystemclock: write control failed, trying again\n");
+    g_warning
+        ("gstsystemclock: write control failed in wakeup_async, trying again : %d:%s\n",
+        errno, g_strerror (errno));
   }
   sysclock->priv->async_wakeup_count++;
 }
@@ -758,7 +762,9 @@ gst_system_clock_id_unschedule (GstClock * clock, GstClockEntry * entry)
      * is usually done when shutting down or some other exceptional case. */
     GST_CAT_DEBUG (GST_CAT_CLOCK, "writing control");
     while (!gst_poll_write_control (GST_SYSTEM_CLOCK_CAST (clock)->priv->timer)) {
-      g_warning ("gstsystemclock: write control failed, trying again\n");
+      g_warning
+          ("gstsystemclock: write control failed in unschedule, trying again\n : %d:%s\n",
+          errno, g_strerror (errno));
     }
   }
   /* when it leaves the poll, it'll detect the unscheduled */





More information about the Gstreamer-commits mailing list