Skip to content

Commit

Permalink
Need to encode to bytes to pass to logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
matham committed Feb 19, 2020
1 parent bc5aeee commit 9d8076c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ffpyplayer/tools.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,8 @@ def list_dshow_devices():
else:
m = m_temp
if not m:
av_log(NULL, loglevels[level], '%s', message)
msg2 = message.encode('utf8')
av_log(NULL, loglevels[level], '%s', msg2)
if m:
curr[m.group(1)] = []
name_map[m.group(1)] = m.group(1)
Expand Down

0 comments on commit 9d8076c

Please sign in to comment.