Opened 14 years ago

Closed 14 years ago

#451 closed patch (fixed)

compile failure rev 7438

Reported by: dgriffith@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythmusic Version:
Severity: high Keywords:
Cc: Ticket locked: no

Description

Mythmusic fails to compile at resample.c

This appears to be a different fault from ticket #306, although a solution for this error was posted there.


The error:

make[2]: Entering directory `/root/tmp/mythsvn/mythplugins/mythmusic/mythmusic'
gcc -c -pipe -march=athlon-xp -O3 -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DMMX -Di386 -DHAVE_DVDNAV -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/kde/3.3/include -I/usr/include -I/usr/include/cdda -I/usr/qt/3/include -I/usr/include -o resample.o resample.c
resample.c:37: Error: error: parse error before "uint32_t"
resample.c:37: warning: no semicolon at end of struct or union

Which was solved by this patch by anonymous , who added it to #306.

Index: mythplugins/mythmusic/mythmusic/resample.c
===================================================================
--- mythplugins/mythmusic/mythmusic/resample.c  (revision 7217)
+++ mythplugins/mythmusic/mythmusic/resample.c  (working copy)
@@ -32,7 +32,7 @@
 #include <string.h>
 #include <stdio.h>

-typedef struct {
+struct ReSampleChannelContext {
     /* fractional resampling */
     uint32_t incr; /* fractional increment */
     uint32_t frac;
@@ -41,8 +41,10 @@
     int iratio;  /* integer divison ratio */
     int icount, isum;
     int inv;
-} ReSampleChannelContext;
+};

+typedef struct ReSampleChannelContext ReSampleChannelContext;
+
 struct ReSampleContext {
     ReSampleChannelContext channel_ctx[2];
     float ratio;

Change History (1)

comment:1 Changed 14 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

(In [7439]) Fix #451 by just removing deprecated code.

Note: See TracTickets for help on using tickets.