- msg_Warn( p_demux, "separator %s does not match %s", psz_line,
- p_sys->psz_separator );
+ msg_Err( p_demux, "no EOL" );
+ return false;
+ }
+
+ /* Read the separator and remember it if not yet stored */
+ if( p_sys->psz_separator == NULL )
+ {
+ p_sys->psz_separator = psz_line;
+ msg_Dbg( p_demux, "Multipart MIME detected, using separator: %s",
+ p_sys->psz_separator );
+ }
+ else
+ {
+ if( strcmp( psz_line, p_sys->psz_separator ) )
+ {
+ msg_Warn( p_demux, "separator %s does not match %s", psz_line,
+ p_sys->psz_separator );
+ }
+ free( psz_line );