Don't create a Xing header if nothing has been recorded

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4838 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-07-06 06:32:38 +00:00
parent 4daa1680cc
commit 012c541d80

View file

@ -1688,7 +1688,7 @@ static void mpeg_thread(void)
if(mpeg_file >= 0)
close(mpeg_file);
if(!disable_xing_header)
if(!disable_xing_header && num_rec_bytes > 0)
{
/* Create the Xing header */
mpeg_file = open(recording_filename, O_RDWR);