[easytag/wip/opus-support] Fixed, Compile when Opus Libraries are not installed
- From: Abhinav Jangda <abhijangda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/opus-support] Fixed, Compile when Opus Libraries are not installed
- Date: Mon, 31 Mar 2014 14:27:23 +0000 (UTC)
commit 2db315e41eed84a57e13101a1904e251c0975e4e
Author: Abhinav <abhijangda hotmail com>
Date: Mon Mar 31 19:56:17 2014 +0530
Fixed, Compile when Opus Libraries are not installed
src/vcedit.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/vcedit.c b/src/vcedit.c
index 8b3f2b2..f018b52 100644
--- a/src/vcedit.c
+++ b/src/vcedit.c
@@ -466,6 +466,7 @@ vcedit_open(vcedit_state *state, GFile *file, GError **error)
break;
}
break;
+#ifdef ENABLE_OPUS
case VCEDIT_IS_OPUS:
switch (opus_tags_parse ((OpusTags *)state->vc,
header->packet,
@@ -491,6 +492,7 @@ vcedit_open(vcedit_state *state, GFile *file, GError **error)
"Ogg Opus tags do not follow the specification");
goto err;
break;
+#endif
}
}
i++;
@@ -685,12 +687,13 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
size = _blocksize(state, &op);
granpos += size;
}
+#ifdef ENABLE_OPUS
else
{
granpos += opus_packet_get_samples_per_frame (op.packet,
48000);
}
-
+#endif
if(op.granulepos == -1)
{
op.granulepos = granpos;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]