[easytag] Remove unused code when reading MP4 header
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Remove unused code when reading MP4 header
- Date: Thu, 17 Apr 2014 21:43:49 +0000 (UTC)
commit f2871ad88af1ba9ff006c6fd9471ad6841e4e182
Author: David King <amigadave amigadave com>
Date: Thu Apr 17 22:42:04 2014 +0100
Remove unused code when reading MP4 header
Found with Coverity (CID 1203406)
src/mp4_header.cc | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/src/mp4_header.cc b/src/mp4_header.cc
index ebb024c..549239e 100644
--- a/src/mp4_header.cc
+++ b/src/mp4_header.cc
@@ -28,7 +28,6 @@
*/
gboolean Mp4_Header_Read_File_Info (gchar *filename, ET_File_Info *ETFileInfo)
{
- TagLib::MP4::Tag *tag;
const TagLib::MP4::Properties *properties;
g_return_val_if_fail (filename != NULL && ETFileInfo != NULL, FALSE);
@@ -62,15 +61,6 @@ gboolean Mp4_Header_Read_File_Info (gchar *filename, ET_File_Info *ETFileInfo)
return FALSE;
}
- if (!(tag = mp4file.tag ()))
- {
- gchar *filename_utf8 = filename_to_display (filename);
- Log_Print (LOG_ERROR, _("File contains no audio track: '%s'"),
- filename_utf8);
- g_free (filename_utf8);
- return FALSE;
- }
-
properties = mp4file.audioProperties ();
if (properties == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]