Skip to content

Commit

Permalink
Merge pull request #282 from stb-tester/draw-text-timestamp-format
Browse files Browse the repository at this point in the history
stbt.draw_text: Use "." separator for fractions of a second
  • Loading branch information
drothlis committed May 22, 2015
2 parents 5091659 + 8b4cd1e commit 7bc68f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stbt/__init__.py
Expand Up @@ -1953,7 +1953,7 @@ def draw(self, obj, duration_secs):
with self.annotations_lock:
if type(obj) in (str, unicode):
obj = (
datetime.datetime.now().strftime("%H:%M:%S:%f")[:-4] +
datetime.datetime.now().strftime("%H:%M:%S.%f")[:-4] +
' ' + obj)
self.text_annotations.append(
{"text": obj, "duration": duration_secs * Gst.SECOND})
Expand Down

0 comments on commit 7bc68f7

Please sign in to comment.