pvr: make sure we check seekability using the dedicated function
authorJoakim Plate <elupus@ecce.se>
Sat, 12 Oct 2013 11:19:02 +0000 (13:19 +0200)
committerJoakim Plate <elupus@ecce.se>
Sat, 12 Oct 2013 11:19:02 +0000 (13:19 +0200)
xbmc/filesystem/PVRFile.cpp

index 4df5448..d223a4d 100644 (file)
@@ -308,7 +308,7 @@ int CPVRFile::IoControl(EIoControl request, void *param)
   {
     if (!g_PVRManager.IsStarted())
       return 0;
-    else if (g_PVRClients->GetStreamLength() && g_PVRClients->SeekStream(0, SEEK_CUR) >= 0)
+    else if (g_PVRClients->CanSeekStream())
       return 1;
     else
       return 0;