[vlc-devel] [v4 03/10] podcast: set the podcat duration to unset when it cannot be parsed
Steve Lhomme
robux4 at ycbcr.xyz
Fri Jul 27 12:49:03 CEST 2018
Rather than assuming it's a livestream which is unlikely for a podcast.
The real duration of the item will be filled by the preparser or on playback.
It's also the value used in input_item_New() when initializing the input item
being read.
---
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..c8afe44bf6 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_UNSET;
}
}
--
2.17.0
More information about the vlc-devel
mailing list