[vlc-devel] [v3 4/9] podcast: set the podcat duration to 0 when it cannot be parsed

Steve Lhomme robux4 at ycbcr.xyz
Thu Jul 26 10:03:57 CEST 2018


Rather than assuming it's a livestream which is unlikely for a podcast.
---
 modules/demux/playlist/podcast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/playlist/podcast.c b/modules/demux/playlist/podcast.c
index 200a1d0b8c..c1cb90ab4e 100644
--- a/modules/demux/playlist/podcast.c
+++ b/modules/demux/playlist/podcast.c
@@ -385,6 +385,6 @@ static vlc_tick_t strTimeToMTime( const char *psz )
     case 2:
         return (vlc_tick_t)( h*60 + m ) * CLOCK_FREQ;
     default:
-        return INPUT_DURATION_UNKNOWN;
+        return INPUT_DURATION_ZERO;
     }
 }
-- 
2.17.0



More information about the vlc-devel mailing list