Commit dfd6aafe authored by Christopher Mueller's avatar Christopher Mueller Committed by Hugo Beauzée-Luyssen

dash: added buffer size to prefs

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent acbdfcb0
...@@ -36,7 +36,7 @@ BlockBuffer::BlockBuffer (stream_t *stream) : ...@@ -36,7 +36,7 @@ BlockBuffer::BlockBuffer (stream_t *stream) :
isEOF (false) isEOF (false)
{ {
this->capacityMicroSec = var_InheritInteger(stream, "dash-bufferSize") * 1000000; this->capacityMicroSec = var_InheritInteger(stream, "dash-buffersize") * 1000000;
if(this->capacityMicroSec <= 0) if(this->capacityMicroSec <= 0)
this->capacityMicroSec = DEFAULTBUFFERLENGTH; this->capacityMicroSec = DEFAULTBUFFERLENGTH;
......
...@@ -54,6 +54,9 @@ static void Close (vlc_object_t *); ...@@ -54,6 +54,9 @@ static void Close (vlc_object_t *);
#define DASH_HEIGHT_TEXT N_("Preferred Height") #define DASH_HEIGHT_TEXT N_("Preferred Height")
#define DASH_HEIGHT_LONGTEXT N_("Preferred Height") #define DASH_HEIGHT_LONGTEXT N_("Preferred Height")
#define DASH_BUFFER_TEXT N_("Buffer Size (Seconds)")
#define DASH_BUFFER_LONGTEXT N_("Buffer size in seconds")
vlc_module_begin () vlc_module_begin ()
set_shortname( N_("DASH")) set_shortname( N_("DASH"))
set_description( N_("Dynamic Adaptive Streaming over HTTP") ) set_description( N_("Dynamic Adaptive Streaming over HTTP") )
...@@ -62,6 +65,7 @@ vlc_module_begin () ...@@ -62,6 +65,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INPUT_STREAM_FILTER ) set_subcategory( SUBCAT_INPUT_STREAM_FILTER )
add_integer( "dash-prefwidth", 480, DASH_WIDTH_TEXT, DASH_WIDTH_LONGTEXT, true ) add_integer( "dash-prefwidth", 480, DASH_WIDTH_TEXT, DASH_WIDTH_LONGTEXT, true )
add_integer( "dash-prefheight", 360, DASH_HEIGHT_TEXT, DASH_HEIGHT_LONGTEXT, true ) add_integer( "dash-prefheight", 360, DASH_HEIGHT_TEXT, DASH_HEIGHT_LONGTEXT, true )
add_integer( "dash-buffersize", 30, DASH_BUFFER_TEXT, DASH_BUFFER_LONGTEXT, true )
set_callbacks( Open, Close ) set_callbacks( Open, Close )
vlc_module_end () vlc_module_end ()
...@@ -118,7 +122,8 @@ static int Open(vlc_object_t *p_obj) ...@@ -118,7 +122,8 @@ static int Open(vlc_object_t *p_obj)
if ( p_dashManager->getMpdManager() == NULL || if ( p_dashManager->getMpdManager() == NULL ||
p_dashManager->getMpdManager()->getMPD() == NULL || p_dashManager->getMpdManager()->getMPD() == NULL ||
p_dashManager->getAdaptionLogic() == NULL ) p_dashManager->getAdaptionLogic() == NULL ||
p_dashManager->start() == false)
{ {
delete p_conManager; delete p_conManager;
delete p_dashManager; delete p_dashManager;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment