-rw-r--r-- | core/multimedia/opieplayer/libmad/libmadplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/libmad/libmadplugin.cpp b/core/multimedia/opieplayer/libmad/libmadplugin.cpp index 0fcc230..7bb6541 100644 --- a/core/multimedia/opieplayer/libmad/libmadplugin.cpp +++ b/core/multimedia/opieplayer/libmad/libmadplugin.cpp | |||
@@ -96,49 +96,49 @@ static void *map_file(int fd, unsigned long *length) | |||
96 | fdm = mmap(0, *length, PROT_READ, MAP_SHARED, fd, 0); | 96 | fdm = mmap(0, *length, PROT_READ, MAP_SHARED, fd, 0); |
97 | if (fdm == MAP_FAILED) | 97 | if (fdm == MAP_FAILED) |
98 | return 0; | 98 | return 0; |
99 | 99 | ||
100 | # if defined(HAVE_MADVISE) | 100 | # if defined(HAVE_MADVISE) |
101 | madvise(fdm, *length, MADV_SEQUENTIAL); | 101 | madvise(fdm, *length, MADV_SEQUENTIAL); |
102 | # endif | 102 | # endif |
103 | 103 | ||
104 | return fdm; | 104 | return fdm; |
105 | } | 105 | } |
106 | 106 | ||
107 | 107 | ||
108 | static int unmap_file(void *fdm, unsigned long length) | 108 | static int unmap_file(void *fdm, unsigned long length) |
109 | { | 109 | { |
110 | if (munmap(fdm, length) == -1) | 110 | if (munmap(fdm, length) == -1) |
111 | return -1; | 111 | return -1; |
112 | 112 | ||
113 | return 0; | 113 | return 0; |
114 | } | 114 | } |
115 | # endif | 115 | # endif |
116 | 116 | ||
117 | 117 | ||
118 | static inline QString tr( const char *str ) { | 118 | static inline QString tr( const char *str ) { |
119 | // Apparently this is okay from a plugin as it runs in the process space of the owner of the plugin | 119 | // Apparently this is okay from a plugin as it runs in the process space of the owner of the plugin |
120 | return qApp->translate( "MediaPlayer", str, "libmad strings for mp3 file info" ); | 120 | return qApp->translate( "OpiePlayer", str, "libmad strings for mp3 file info" ); |
121 | } | 121 | } |
122 | 122 | ||
123 | 123 | ||
124 | class LibMadPluginData { | 124 | class LibMadPluginData { |
125 | public: | 125 | public: |
126 | Input input; | 126 | Input input; |
127 | Output output; | 127 | Output output; |
128 | int bad_last_frame; | 128 | int bad_last_frame; |
129 | struct mad_stream stream; | 129 | struct mad_stream stream; |
130 | struct mad_frame frame; | 130 | struct mad_frame frame; |
131 | struct mad_synth synth; | 131 | struct mad_synth synth; |
132 | bool flush; | 132 | bool flush; |
133 | }; | 133 | }; |
134 | 134 | ||
135 | 135 | ||
136 | LibMadPlugin::LibMadPlugin() { | 136 | LibMadPlugin::LibMadPlugin() { |
137 | d = new LibMadPluginData; | 137 | d = new LibMadPluginData; |
138 | d->input.fd = 0; | 138 | d->input.fd = 0; |
139 | #if defined(HAVE_MMAP) | 139 | #if defined(HAVE_MMAP) |
140 | d->input.fdm = 0; | 140 | d->input.fdm = 0; |
141 | #endif | 141 | #endif |
142 | d->input.data = 0; | 142 | d->input.data = 0; |
143 | d->flush = TRUE; | 143 | d->flush = TRUE; |
144 | info = tr( "No Song Open" ); | 144 | info = tr( "No Song Open" ); |