[vlc-commits] [Git][videolan/libvlcpp][master] Media: Update to recent parseWithOptions changes
Hugo Beauzée-Luyssen
gitlab at videolan.org
Sun Jun 5 15:25:17 CEST 2016
Hugo Beauzée-Luyssen pushed to branch master at videolan / libvlcpp
Commits:
c7515b98 by Hugo Beauzée-Luyssen at 2016-06-05T15:24:35+02:00
Media: Update to recent parseWithOptions changes
- - - - -
1 changed file:
- vlcpp/Media.hpp
Changes:
=====================================
vlcpp/Media.hpp
=====================================
--- a/vlcpp/Media.hpp
+++ b/vlcpp/Media.hpp
@@ -118,10 +118,10 @@ public:
enum class ParsedStatus
{
- Init = libvlc_media_parsed_status_init,
Skipped = libvlc_media_parsed_status_skipped,
Failed = libvlc_media_parsed_status_failed,
Done = libvlc_media_parsed_status_done,
+ Timeout = libvlc_media_parsed_status_timeout,
};
enum class Type
@@ -598,11 +598,15 @@ public:
* \see ParseFlag
*
* \return true on success, false otherwise
+ * \param flags parse options
+ * \param timeout maximum time allowed to preparse the media. If -1, the
+ * default "preparse-timeout" option will be used as a timeout. If 0, it will
+ * wait indefinitely. If > 0, the timeout will be used (in milliseconds).
* \version LibVLC 3.0.0 or later
*/
- bool parseWithOptions( ParseFlags flags )
+ bool parseWithOptions( ParseFlags flags, int timeout )
{
- return libvlc_media_parse_with_options( *this, static_cast<libvlc_media_parse_flag_t>( flags ) ) == 0;
+ return libvlc_media_parse_with_options( *this, static_cast<libvlc_media_parse_flag_t>( flags ), timeout ) == 0;
}
ParsedStatus parsedStatus()
View it on GitLab: https://code.videolan.org/videolan/libvlcpp/commit/c7515b98378103ec520614452b9d874126c6dbe3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-commits/attachments/20160605/db89a0c9/attachment-0001.html>
More information about the vlc-commits
mailing list