llelectronics / videoPlayer

Video player for sailfish os
27 stars 19 forks source link

Crash when opening pls playlist file #22

Closed OH1KK closed 7 years ago

OH1KK commented 7 years ago

LLs Video Player v1.9

I tried to make playlist for ubiquiti rtsp webcams and open it with LLs Video player. When I try to load playlist player crashes.

Steps to reproduce crash

  1. Open application
  2. Select Playlists
  3. Load Playlist
  4. select bonkkitallennin.pls

crash.

[F] unknown:0 - ASSERT: "uint(i) < uint(size())" in file /usr/include/qt5/QtCore/qstring.h, line 868 Aborted

Expected behaviour

bonkkitallennin.pls.txt

added .txt extension to playlist attachment for github

OH1KK commented 7 years ago

Launching streams direcly from console

/usr/bin/harbour-videoPlayer rtsp://172.16.50.8:7447/59a97b79e4b0518d34cdd972_1

Works ok. Video and audio works. So this feels like playlist issue. Also I found workaround. After launching stream from console I was able to bookmark it. Playlist loading is broken but bookmarks works fine.

llelectronics commented 7 years ago

Thanks for reporting. The issue had nothing to do with rtsp streams but rather with the parser for the .pls files. The empty newlines at the end of your playlists made it crash as it did not properly handle empty lines at all. This is all fixed now.

Thanks again for reporting.