diff --git a/modules/demux/rawvid.c b/modules/demux/rawvid.c
index 11d27a145bb1dc1134d78a354482816b79cf89de..cfaf69487e11eefd5fd664835e290157c64607cd 100644
--- a/modules/demux/rawvid.c
+++ b/modules/demux/rawvid.c
@@ -359,8 +359,6 @@ valid:
     return VLC_SUCCESS;
 
 error:
-    /* workaround, but y4m uses vlc_stream_ReadLine */
-    vlc_stream_Seek( p_demux->s, 0 );
     free( p_sys );
     return VLC_EGENERIC;
 }