clock = gst_element_get_clock (GST_ELEMENT (dtmfsrc));
if (clock != NULL) {
+#ifdef MAEMO_BROKEN
+ dtmfsrc->timestamp = gst_clock_get_time (clock);
+#else
dtmfsrc->timestamp = gst_clock_get_time (clock) - base_time;
+#endif
gst_object_unref (clock);
} else {
gchar *dtmf_name = gst_element_get_name (dtmfsrc);
clock = gst_element_get_clock (GST_ELEMENT (basesrc));
+#ifdef MAEMO_BROKEN
+ clockid = gst_clock_new_single_shot_id (clock, dtmfsrc->timestamp);
+#else
clockid = gst_clock_new_single_shot_id (clock, dtmfsrc->timestamp +
gst_element_get_base_time (GST_ELEMENT (dtmfsrc)));
+#endif
gst_object_unref (clock);
GST_OBJECT_LOCK (dtmfsrc);
GstClock *clock;
GstClockTime base_time;
+#ifdef MAEMO_BROKEN
+ base_time = 0;
+#else
base_time = gst_element_get_base_time (GST_ELEMENT (dtmfsrc));
+#endif
clock = gst_element_get_clock (GST_ELEMENT (dtmfsrc));
if (clock != NULL) {
clock = gst_element_get_clock (GST_ELEMENT (basesrc));
+#ifdef MAEMO_BROKEN
+ clockid = gst_clock_new_single_shot_id (clock, dtmfsrc->timestamp);
+#else
clockid = gst_clock_new_single_shot_id (clock, dtmfsrc->timestamp +
gst_element_get_base_time (GST_ELEMENT (dtmfsrc)));
+#endif
gst_object_unref (clock);
GST_OBJECT_LOCK (dtmfsrc);