mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
gst/gstelement.c: add failure check
Original commit message from CVS: * gst/gstelement.c: (gst_element_set_time_delay): add failure check * gst/gstinfo.h: put brackets around macro arguments of GST_TIME_ARGS, add note to move it to correct header in 0.9
This commit is contained in:
parent
2b74c4fbb2
commit
4e4b651999
3 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-06-07 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/gstelement.c: (gst_element_set_time_delay):
|
||||
add failure check
|
||||
* gst/gstinfo.h:
|
||||
put brackets around macro arguments of GST_TIME_ARGS, add note to
|
||||
move it to correct header in 0.9
|
||||
|
||||
2004-06-07 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/indexers/gstfileindex.c: (gst_file_index_get_writer_id),
|
||||
|
|
|
@ -919,6 +919,7 @@ gst_element_set_time_delay (GstElement * element, GstClockTime time,
|
|||
g_return_if_fail (GST_IS_ELEMENT (element));
|
||||
g_return_if_fail (GST_IS_CLOCK (element->clock));
|
||||
g_return_if_fail (element->current_state >= GST_STATE_PAUSED);
|
||||
g_return_if_fail (time >= delay);
|
||||
|
||||
switch (element->current_state) {
|
||||
case GST_STATE_PAUSED:
|
||||
|
|
|
@ -818,12 +818,13 @@ GST_LOG (const char *format, ...)
|
|||
void gst_debug_print_stack_trace (void);
|
||||
|
||||
/* timestamp debugging macros */
|
||||
/* FIXME 0.9: move into the correct header (gstclock.h) */
|
||||
#define GST_TIME_FORMAT "u:%02u:%02u.%09u"
|
||||
#define GST_TIME_ARGS(t) \
|
||||
(guint) (t / (GST_SECOND * 60 * 60)), \
|
||||
(guint) ((t / (GST_SECOND * 60)) % 60), \
|
||||
(guint) ((t / GST_SECOND) % 60), \
|
||||
(guint) (t % GST_SECOND)
|
||||
(guint) ((t) / (GST_SECOND * 60 * 60)), \
|
||||
(guint) (((t) / (GST_SECOND * 60)) % 60), \
|
||||
(guint) (((t) / GST_SECOND) % 60), \
|
||||
(guint) ((t) % GST_SECOND)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue