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

Pierre Ynard linkfanel at yahoo.fr
Sat Sep 19 21:05:25 CEST 2020


diff --git a/src/input/vlmshell.c b/src/input/vlmshell.c
index cdb27bb..54b3c20 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 );
-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."


More information about the vlc-devel mailing list