[vlc-commits] commit: vlm: accept "ps" and "ts" as mux arguments (Pierre Ynard )
git at videolan.org
git at videolan.org
Fri Nov 19 19:58:05 CET 2010
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Fri Nov 19 19:56:09 2010 +0100| [62ac11aea889dea39d9fd9ced7a689dea76ce7ca] | committer: Pierre Ynard
vlm: accept "ps" and "ts" as mux arguments
Having to type "mux mp2t" was lame
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=62ac11aea889dea39d9fd9ced7a689dea76ce7ca
---
src/input/vlm.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/input/vlm.c b/src/input/vlm.c
index 080fd8f..38056b4 100644
--- a/src/input/vlm.c
+++ b/src/input/vlm.c
@@ -639,11 +639,19 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
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;
es_format_t es, *p_es = &es;
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[1] = tolower(fourcc.text[1]);
fourcc.text[2] = tolower(fourcc.text[2]);
More information about the vlc-commits
mailing list