]> git.sesse.net Git - vlc/blobdiff - modules/demux/cdg.c
macosx interface: fix regression introduced in [21230]. patch by John Dalgliesh
[vlc] / modules / demux / cdg.c
index f9e2e7776908752daea0a86379a59b97349cf4a7..de685a519231462312ad264381aa71163e67d7cf 100644 (file)
@@ -73,9 +73,7 @@ static int Open( vlc_object_t * p_this )
 
     /* Identify cdg file by extension, as there is no simple way to
      * detect it */
-    if( !demux2_IsPathExtension( p_demux, ".cdg" ) &&
-        !demux2_IsPathExtension( p_demux, ".CDG" ) &&
-        !demux2_IsForced( p_demux, "cdg" ) )
+    if( !demux2_IsPathExtension( p_demux, ".cdg" ) && !p_demux->b_force )
         return VLC_EGENERIC;
 
     /* CDG file size has to be multiple of CDG_FRAME_SIZE (it works even