[vlc-commits] [Git][videolan/vlc][master] ps: remove forced submodule

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Apr 10 11:32:43 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
a02b93fd by Thomas Guillem at 2026-04-10T11:05:24+00:00
ps: remove forced submodule

We are still searching for a witness that was able to play a video
thanks to this forced submodule.

It's better to fail early than trying to parse garbage.

- - - - -


1 changed file:

- modules/demux/mpeg/ps.c


Changes:

=====================================
modules/demux/mpeg/ps.c
=====================================
@@ -53,7 +53,6 @@
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
-static int  OpenForce( vlc_object_t * );
 static int  Open   ( vlc_object_t * );
 static void Close  ( vlc_object_t * );
 
@@ -61,19 +60,13 @@ vlc_module_begin ()
     set_description( N_("MPEG-PS demuxer") )
     set_shortname( N_("PS") )
     set_subcategory( SUBCAT_INPUT_DEMUX )
-    set_capability( "demux", 1 )
-    set_callbacks( OpenForce, Close )
+    set_capability( "demux", 9 )
+    set_callbacks( Open, Close )
     add_shortcut( "ps" )
 
     add_bool( "ps-trust-timestamps", true, TIME_TEXT,
                  TIME_LONGTEXT )
         change_safe ()
-
-    add_submodule ()
-    set_description( N_("MPEG-PS demuxer") )
-    set_capability( "demux", 9 )
-    set_callbacks( Open, Close )
-    add_shortcut( "ps" )
 vlc_module_end ()
 
 /*****************************************************************************
@@ -144,7 +137,7 @@ static void CreateOrUpdateES( demux_t*p_demux )
 /*****************************************************************************
  * Open
  *****************************************************************************/
-static int OpenCommon( vlc_object_t *p_this, bool b_force )
+static int Open( vlc_object_t *p_this )
 {
     demux_t     *p_demux = (demux_t*)p_this;
     demux_sys_t *p_sys;
@@ -190,12 +183,6 @@ static int OpenCommon( vlc_object_t *p_this, bool b_force )
         msg_Info( p_demux, "Detected CDXA-PS" );
         /* FIXME: have a proper way to decap CD sectors or make an access stream filter */
     }
-    else if( b_force )
-    {
-        msg_Warn( p_demux, "this does not look like an MPEG PS stream, "
-                  "continuing anyway" );
-        i_max_packets = 0;
-    }
 
     for( unsigned i=0; i<i_max_packets; i++ )
     {
@@ -277,16 +264,6 @@ static int OpenCommon( vlc_object_t *p_this, bool b_force )
     return VLC_SUCCESS;
 }
 
-static int OpenForce( vlc_object_t *p_this )
-{
-    return OpenCommon( p_this, true );
-}
-
-static int Open( vlc_object_t *p_this )
-{
-    return OpenCommon( p_this, p_this->force );
-}
-
 /*****************************************************************************
  * Close
  *****************************************************************************/



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a02b93fd0bb43d7d42c5a9e9486f3486781ae976

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a02b93fd0bb43d7d42c5a9e9486f3486781ae976
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list