diff --git a/modules/demux/adaptive/PlaylistManager.cpp b/modules/demux/adaptive/PlaylistManager.cpp
index 95c817715eb93d13f31aa5a8d139f6b6bb8544a5..700fa3a8d330f2c26e0e8e90c1ffcdae0d7fb5d1 100644
--- a/modules/demux/adaptive/PlaylistManager.cpp
+++ b/modules/demux/adaptive/PlaylistManager.cpp
@@ -346,6 +346,7 @@ mtime_t PlaylistManager::getDuration() const
 bool PlaylistManager::setPosition(mtime_t time)
 {
     bool ret = true;
+    bool hasValidStream = false;
     for(int real = 0; real < 2; real++)
     {
         /* Always probe if we can seek first */
@@ -354,11 +355,19 @@ bool PlaylistManager::setPosition(mtime_t time)
         {
             AbstractStream *st = *it;
             if(!st->isDisabled())
+            {
+                hasValidStream = true;
                 ret &= st->setPosition(time, !real);
+            }
         }
         if(!ret)
             break;
     }
+    if(!hasValidStream)
+    {
+        msg_Warn(p_demux, "there is no valid streams");
+        ret = false;
+    }
     return ret;
 }