Commit 62ac11ae authored by Pierre Ynard's avatar Pierre Ynard

vlm: accept "ps" and "ts" as mux arguments

Having to type "mux mp2t" was lame
parent 1a9c88e2
...@@ -639,11 +639,19 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media ) ...@@ -639,11 +639,19 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
if( p_cfg->vod.psz_mux ) if( p_cfg->vod.psz_mux )
{ {
const char *psz_mux;
if (!strcmp(p_cfg->vod.psz_mux, "ps"))
psz_mux = "mp2p";
else if (!strcmp(p_cfg->vod.psz_mux, "ts"))
psz_mux = "mp2t";
else
psz_mux = p_cfg->vod.psz_mux;
input_item_t item; input_item_t item;
es_format_t es, *p_es = &es; es_format_t es, *p_es = &es;
union { char text[5]; uint32_t value; } fourcc; union { char text[5]; uint32_t value; } fourcc;
sprintf( fourcc.text, "%4.4s", p_cfg->vod.psz_mux ); sprintf( fourcc.text, "%4.4s", psz_mux );
fourcc.text[0] = tolower(fourcc.text[0]); fourcc.text[0] = tolower(fourcc.text[0]);
fourcc.text[1] = tolower(fourcc.text[1]); fourcc.text[1] = tolower(fourcc.text[1]);
fourcc.text[2] = tolower(fourcc.text[2]); fourcc.text[2] = tolower(fourcc.text[2]);
......
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