Shorten GES_FORMAT output

This commit is contained in:
Thibault Saunier 2019-02-09 00:07:08 -03:00 committed by Thibault Saunier
parent 430719d172
commit 957d9a01fe
2 changed files with 16 additions and 4 deletions

View file

@ -57,10 +57,10 @@ GST_DEBUG_CATEGORY_EXTERN (_ges_debug);
#define _set_priority0 ges_timeline_element_set_priority
#define GES_TIMELINE_ELEMENT_FORMAT \
"s:%p" \
" start: %" GST_TIME_FORMAT \
" inpoint: %" GST_TIME_FORMAT \
" duration: %" GST_TIME_FORMAT
"s<%p>" \
" [ %" GST_TIME_FORMAT \
" (%" GST_TIME_FORMAT \
") - %" GST_TIME_FORMAT "]"
#define GES_TIMELINE_ELEMENT_ARGS(element) \
GES_TIMELINE_ELEMENT_NAME(element), element, \

View file

@ -96,4 +96,16 @@ G_STMT_START { \
gst_object_unref (tmplayer); \
}
#define GES_TIMELINE_ELEMENT_FORMAT \
"s<%p>" \
" [ %" GST_TIME_FORMAT \
" (%" GST_TIME_FORMAT \
") - %" GST_TIME_FORMAT "]"
#define GES_TIMELINE_ELEMENT_ARGS(element) \
GES_TIMELINE_ELEMENT_NAME(element), element, \
GST_TIME_ARGS(GES_TIMELINE_ELEMENT_START(element)), \
GST_TIME_ARGS(GES_TIMELINE_ELEMENT_INPOINT(element)), \
GST_TIME_ARGS(GES_TIMELINE_ELEMENT_DURATION(element))
#endif /* _GES_TEST_UTILS */