Commit d50a4648 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove dead code (CID #2)

(cherry picked from commit fe5605fa)
parent 1ce5bf08
...@@ -843,17 +843,9 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev, ...@@ -843,17 +843,9 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
{ {
/* psz_dev must be the cue file. Let's assume there's a .bin /* psz_dev must be the cue file. Let's assume there's a .bin
* file with the same filename */ * file with the same filename */
if( p_pos )
{
psz_vcdfile = malloc( p_pos - psz_dev + 5 /* ".bin" */ ); psz_vcdfile = malloc( p_pos - psz_dev + 5 /* ".bin" */ );
strncpy( psz_vcdfile, psz_dev, p_pos - psz_dev ); strncpy( psz_vcdfile, psz_dev, p_pos - psz_dev );
strcpy( psz_vcdfile + (p_pos - psz_dev), ".bin"); strcpy( psz_vcdfile + (p_pos - psz_dev), ".bin");
}
else
{
psz_vcdfile = malloc( strlen(psz_dev) + 5 /* ".bin" */ );
sprintf( psz_vcdfile, "%s.bin", psz_dev );
}
psz_cuefile = strdup( psz_dev ); psz_cuefile = strdup( psz_dev );
} }
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment