From baa59f932113c1904fe5a0d93164b778587edab1 Mon Sep 17 00:00:00 2001 From: Jonathan Springer Date: Mon, 7 Dec 2015 16:40:45 -0500 Subject: [PATCH] Forgot to uncomment some code --- openlp/core/ui/media/systemplayer.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/openlp/core/ui/media/systemplayer.py b/openlp/core/ui/media/systemplayer.py index 22899ab06..0dc5a8af9 100644 --- a/openlp/core/ui/media/systemplayer.py +++ b/openlp/core/ui/media/systemplayer.py @@ -81,14 +81,14 @@ class SystemPlayer(MediaPlayer): log.info(media_service.__class__.__name__) # supportedMimeTypes doesn't return anything on Linux and Windows and # the mimetypes it returns on Mac OS X may not be playable. - # supported_codecs = self.media_player.supportedMimeTypes() - # for mime_type in supported_codecs: - # mime_type = str(mime_type) - # log.info(mime_type) - # if mime_type.startswith('audio/'): - # self._add_to_list(self.audio_extensions_list, mime_type) - # elif mime_type.startswith('video/'): - # self._add_to_list(self.video_extensions_list, mime_type) + supported_codecs = self.media_player.supportedMimeTypes() + for mime_type in supported_codecs: + mime_type = str(mime_type) + log.info(mime_type) + if mime_type.startswith('audio/'): + self._add_to_list(self.audio_extensions_list, mime_type) + elif mime_type.startswith('video/'): + self._add_to_list(self.video_extensions_list, mime_type) def _add_to_list(self, mime_type_list, mimetype): """