[vlc-commits] vlm: print removal message when trying to create VoD media

Pierre Ynard git at videolan.org
Sat Oct 3 12:07:40 CEST 2020


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Oct  3 11:58:23 2020 +0200| [9056e8ad053efa8e650e14f370a75eacd0894d2a] | committer: Pierre Ynard

vlm: print removal message when trying to create VoD media

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9056e8ad053efa8e650e14f370a75eacd0894d2a
---

 src/input/vlmshell.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/input/vlmshell.c b/src/input/vlmshell.c
index cdb27bb9a9..54b3c209c8 100644
--- a/src/input/vlmshell.c
+++ b/src/input/vlmshell.c
@@ -799,6 +799,11 @@ static int ExecuteNew( vlm_t *p_vlm, const char *psz_name, const char *psz_type,
         vlm_media_Clean( &cfg );
         return ExecuteMediaProperty( p_vlm, id, true, i_property, ppsz_property, pp_status );
     }
+    else if( !strcmp( psz_type, "vod" ) )
+    {
+        *pp_status = vlm_MessageNew( "new", "VoD support was removed" );
+        return VLC_EGENERIC;
+    }
     else
     {
         *pp_status = vlm_MessageNew( "new", "%s: Choose between broadcast or schedule", psz_type );



More information about the vlc-commits mailing list