Skip to content

Commit

Permalink
scanner: fix newby logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeSpotRun committed Mar 15, 2016
1 parent 1101823 commit a5d8dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mopidy/audio/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _process(pipeline, timeout_ms):
duration = duration // Gst.MSECOND
else:
duration = None
if (tags and duration
if (tags and duration != None
# workaround for
# https://bugzilla.gnome.org/show_bug.cgi?id=763553:
# try to start pipeline playing; if it doesn't then
Expand All @@ -213,7 +213,7 @@ def _process(pipeline, timeout_ms):

# workaround for https://bugzilla.gnome.org/show_bug.cgi?id=763553:
# if we got what we want then stop playing (and wait for ASYNC_DONE)
if tags and duration:
if tags and duration != None:
pipeline.set_state(Gst.State.PAUSED)

raise exceptions.ScannerError('Timeout after %dms' % timeout_ms)
Expand Down

0 comments on commit a5d8dd7

Please sign in to comment.