mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
Rename new API + ChangeLog surgery to remove old name from last entry..
Original commit message from CVS: * docs/gst/gstreamer-sections.txt: * gst/gstclock.h: * gst/gstdebugutils.c: * gst/gstinfo.c: Rename new API + ChangeLog surgery to remove old name from last entry.. API: GST_GET_TIMESTAMP
This commit is contained in:
parent
fbf7086287
commit
ddb7cc2763
5 changed files with 19 additions and 10 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,12 @@
|
||||||
|
2007-11-28 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* docs/gst/gstreamer-sections.txt:
|
||||||
|
* gst/gstclock.h:
|
||||||
|
* gst/gstdebugutils.c:
|
||||||
|
* gst/gstinfo.c:
|
||||||
|
Rename new API + ChangeLog surgery to remove old name from last entry..
|
||||||
|
API: GST_GET_TIMESTAMP
|
||||||
|
|
||||||
2007-11-28 Stefan Kost <ensonic@users.sf.net>
|
2007-11-28 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* docs/gst/gstreamer-sections.txt:
|
* docs/gst/gstreamer-sections.txt:
|
||||||
|
@ -5,7 +14,6 @@
|
||||||
* gst/gstdebugutils.c:
|
* gst/gstdebugutils.c:
|
||||||
* gst/gstinfo.c:
|
* gst/gstinfo.c:
|
||||||
Now hide the different clock stuff behind a macro.
|
Now hide the different clock stuff behind a macro.
|
||||||
API: GST_GET_CURRENT_TIME
|
|
||||||
|
|
||||||
2007-11-28 Stefan Kost <ensonic@users.sf.net>
|
2007-11-28 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
|
|
@ -320,7 +320,7 @@ GST_TIMEVAL_TO_TIME
|
||||||
GST_TIME_TO_TIMEVAL
|
GST_TIME_TO_TIMEVAL
|
||||||
GST_TIMESPEC_TO_TIME
|
GST_TIMESPEC_TO_TIME
|
||||||
GST_TIME_TO_TIMESPEC
|
GST_TIME_TO_TIMESPEC
|
||||||
GST_GET_CURRENT_TIME
|
GST_GET_TIMESTAMP
|
||||||
GST_CLOCK_ENTRY_TRACE_NAME
|
GST_CLOCK_ENTRY_TRACE_NAME
|
||||||
GstClockEntry
|
GstClockEntry
|
||||||
GstClockCallback
|
GstClockCallback
|
||||||
|
|
|
@ -199,22 +199,23 @@ G_STMT_START { \
|
||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_GET_CURRENT_TIME:
|
* GST_GET_TIMESTAMP:
|
||||||
* @now: GstClockTime variable that will get the current time
|
* @now: GstClockTime variable that will get the timestamp
|
||||||
*
|
*
|
||||||
* Get the current time as a GstClockTime from the system.
|
* Get a timestamp as GstClockTime to be used for interval meassurements.
|
||||||
|
* The timestamp should now be interpreted in any other way.
|
||||||
*
|
*
|
||||||
* Since: 0.10.16
|
* Since: 0.10.16
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_POSIX_TIMERS
|
#ifdef HAVE_POSIX_TIMERS
|
||||||
#define GST_GET_CURRENT_TIME(now) \
|
#define GST_GET_TIMESTAMP(now) \
|
||||||
G_STMT_START { \
|
G_STMT_START { \
|
||||||
struct timespec _now; \
|
struct timespec _now; \
|
||||||
clock_gettime (CLOCK_MONOTONIC, &_now); \
|
clock_gettime (CLOCK_MONOTONIC, &_now); \
|
||||||
now = GST_TIMESPEC_TO_TIME (_now); \
|
now = GST_TIMESPEC_TO_TIME (_now); \
|
||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
#else
|
#else
|
||||||
#define GST_GET_CURRENT_TIME(now) \
|
#define GST_GET_TIMESTAMP(now) \
|
||||||
G_STMT_START { \
|
G_STMT_START { \
|
||||||
GTimeVal _now; \
|
GTimeVal _now; \
|
||||||
g_get_current_time (&_now); \
|
g_get_current_time (&_now); \
|
||||||
|
|
|
@ -507,7 +507,7 @@ _gst_debug_bin_to_dot_file_with_ts (GstBin * bin, GstDebugGraphDetails details,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* add timestamp */
|
/* add timestamp */
|
||||||
GST_GET_CURRENT_TIME (now);
|
GST_GET_TIMESTAMP (now);
|
||||||
elapsed = GST_CLOCK_DIFF (now, _priv_gst_info_start_time);
|
elapsed = GST_CLOCK_DIFF (now, _priv_gst_info_start_time);
|
||||||
ts_file_name =
|
ts_file_name =
|
||||||
g_strdup_printf ("%" GST_TIME_FORMAT "-%s", GST_TIME_ARGS (elapsed),
|
g_strdup_printf ("%" GST_TIME_FORMAT "-%s", GST_TIME_ARGS (elapsed),
|
||||||
|
|
|
@ -281,7 +281,7 @@ _gst_debug_init (void)
|
||||||
gst_atomic_int_set (&__use_color, 1);
|
gst_atomic_int_set (&__use_color, 1);
|
||||||
|
|
||||||
/* get time we started for debugging messages */
|
/* get time we started for debugging messages */
|
||||||
GST_GET_CURRENT_TIME (_priv_gst_info_start_time);
|
GST_GET_TIMESTAMP (_priv_gst_info_start_time);
|
||||||
|
|
||||||
#ifdef HAVE_PRINTF_EXTENSION
|
#ifdef HAVE_PRINTF_EXTENSION
|
||||||
register_printf_function (GST_PTR_FORMAT[0], _gst_info_printf_extension_ptr,
|
register_printf_function (GST_PTR_FORMAT[0], _gst_info_printf_extension_ptr,
|
||||||
|
@ -665,7 +665,7 @@ gst_debug_log_default (GstDebugCategory * category, GstDebugLevel level,
|
||||||
free_obj = FALSE;
|
free_obj = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_GET_CURRENT_TIME (now);
|
GST_GET_TIMESTAMP (now);
|
||||||
elapsed = GST_CLOCK_DIFF (now, _priv_gst_info_start_time);
|
elapsed = GST_CLOCK_DIFF (now, _priv_gst_info_start_time);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue