Changeset 72757e9340c0d3a64760349a06fbc7aa47ba0417

Show
Ignore:
Timestamp:
11/12/07 14:34:54 (8 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1194874494 +0000
git-parent:

[5395427fef4d5c327bec4d21188f41043ce07b70]

git-author:
Rafaël Carré <funman@videolan.org> 1194874494 +0000
Message:

googleimage plugin: don't run vlc.uri_decode on a nil string

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • share/luameta/googleimage.lua

    rd2a20af r72757e9  
    4545    vlc.stream_delete( fd ) 
    4646    _, _, arturl = string.find( page, "imgurl=([^&]+)" ) 
    47     return vlc.decode_uri(arturl) 
     47    if arturl then 
     48        return vlc.decode_uri(arturl) 
     49    else 
     50        return nil 
     51    end 
    4852end