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:
parent
4daa1680cc
commit
012c541d80
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue