Displaying 20 results from an estimated 2000 matches similar to: "[PATCH] Memory issue and cast causing failures when adding metadata"
2009 Jan 28
1
Missing dereference in Stream::set_metadata()?
Hello,
I seem to have hit a bug with adding meta data to a stream via the C++ interface. I am using FLAC 1.2.1. I've had a look through the email list archive and can't spot anything similar.
The Stream::set_metadata(Prototype) function takes a double pointer which implies that it is expecting an array of pointers to Prototype objects. For example:
FLAC::Metadata::Prototype
2006 May 11
2
C++ Set_Metadata Problem
I refer to a problem that appeared on the flac list last August that was
either solved off-list or abandoned.
(http://lists.xiph.org/pipermail/flac/2005-August/000468.html)
The problem is with using the C++ encoder classes, particularly the
FLAC::Encoder::File:set_metadata
function. JC said that the developers version of how to add a simple
metadata block looked right, but it did not work for
2004 Sep 10
2
usage of C++ StreamMetadata interface
Hi,
I would like to use the nice C++ wrapper classes for FLAC metadata in a
FLAC::Stream::Encoder, but I cannot find an interface to get a
"FLAC__StreamMetadata *" from one of those objects.
So, as the FLAC::Stream::Encoder.set_metadata() function takes a
"FLAC__StreamMetadata **" - so how can I use this, how is this intended
to work???
For me all those Metadata classes look
2007 Oct 17
1
Fwd: Re: FLAC for "ARM little endian for glibc"
On Thursday 04 October 2007 04:27:47 you wrote:
> Sir, you need to provide more information. What kind of errors? What
> is not working? What exactly are you trying to do? What compiler are
> you using?
H IV0,
we are using a lot of different cross-compiler (mainly based on GCC 3.4.x)
When I tried to cross-compile FLAC for non-i386 platforms (such as ARM), I use
use
2005 Aug 01
1
Application Metadata
Hi,
I'm sorry to say that I've found the libFLAC++ interface and
documentation pretty slim and baffling.
What I need to do is add some application-specific metadata to a FLAC
file (i'm using the FLAC++ fileencoder). It is currently just a string
of characters, which doesn't need to be null-terminated.
I've looked through the docs, i've looked through the tests, and
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
Hi,
the patch below fixes function prototypes/defintions with void
argument to shut up the heartful warnings by recent gcc :)
It doesn't cover all places, e.g. test directories.
The patch is to 1.1.2.
Takashi
--- src/metaflac/operations.c-dist 2005-05-25 16:20:02.000000000 +0200
+++ src/metaflac/operations.c 2005-05-25 16:20:09.000000000 +0200
@@ -26,7 +26,7 @@
#include <stdlib.h>
2004 Sep 10
3
getting framesize in client
On Fri, Nov 08, 2002 at 12:39:52PM -0800, Josh Coalson wrote:
> --- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote:
> > I have few notes:
> >
> > It seems there is changed API in CVS again. So, what about adding
> > function like
> > unsigned FLAC__format_frame_size(const FLAC__Frame *frame)
> > which returns size of the frame in bytes. This
2004 Sep 10
2
usage of C++ StreamMetadata interface
Josh Coalson wrote:
> [...]
> why do you need one? all the fields are available though method
> calls.
just an example:
I created an object of the type "FLAC::Metadata::VorbisComment".
How will this find it's way to
"FLAC::Stream::Encoder.set_metadata()" ???
Thomas
2006 Sep 06
2
Getting subframe type=verbatim on 16 bit files
I'm using libFLACC++ and libFLAC and I think that I'm using the calls in the
typical order (see code below). But every monoe or stereo file that I send
thru I get files that are the same sze as the orginal wave files.
Doing a flac -a on the flac files I see that I get:
frame=9 blocksize=4608 sample_rate=8000 channels=1
channel_assignment=INDEPENDENT
subframe=0
2012 Apr 24
1
Writing seektable using libFLAC++
Hi! I've been using a little C++ program I've written to encode flac files. The program does this in the usual way (I think), by inheriting a class from FLAC::Encoder::File, and passing it chunks of raw samples through process_interleaved()... Anyway, the program works beautifully, and I've now decided to try and add some metadata to the encoded flacs. Eventually, there will be vorbis
2004 Sep 10
3
FLAC 1.0.3 is out
Yes, it's finally here. See the homepage for details, but here's
a summary:
- 10-15% decoder speedup
- 24-bit input support restored
- more robust plugins
- new metadata block for Vorbis-style tags
- vastly improved metadata editor
- fixed bug with pipes and Windows
- new libFLAC++, a C++ object wrapper around libFLAC
- new metadata editing interface in libFLAC and libFLAC++
- and
2011 Jun 10
2
Memory leak using libflac++
Hi all,
I'm the author of flactag, a utility for tagging whole-album FLAC files with
embedded CUE sheets using data from the MusicBrainz servers.
I've recently run it through valgrind, and I'm seeing memory leaks like the
following:
12 bytes in 1 blocks are definitely lost in loss record 1 of 5
at 0x402377E: operator new(unsigned) (vg_replace_malloc.c:224)
by 0x41448A8:
2006 Mar 10
1
libflac++ reading vorbis metadata
On 2006-03-09 (Thu) ,at 23:20:50 Josh Coalson wrote:
> the vorbiscomments are not in the streaminfo. you want to do:
>
> FLAC::Metadata::VorbisComment tags;
> if (FLAC::Metadata::get_tags("somefile.flac", tags)) {
> FLAC::Metadata::VorbisComment::Entry entry =
> tags->get_comment(tags->get_num_comments-1); //e.g. last tag
> // do something with
2006 Dec 23
1
Bug in FLAC++ Stream::set_metadata()
I've found what looks like a bug in FLAC++ inside the Stream::set_metadata() method. It appears that the contained calls to FLAC__stream_encoder_set_metadata() are being passed arguments that point to local stack data (specifically the 'm' parameter which is a table that points to metadata objects). The code inside FLAC__stream_encoder_set_metadata() does nothing but store the given
2007 Jan 02
4
Is FLAC fully cooked for OS X yet?
On Jan 2, 2007, at 5:15 AM, Arek Korbik wrote:
> The XCode project files you found are meant to be used with FLAC
> 1.1.2. The FLAC repository now contains version 1.1.3 files, and there
> have been interface changes in that latest revision
> (http://flac.sourceforge.net/changelog.html#flac_1_1_3). That could
> explain your problems with compilation.
Well, now, no, I did download
2004 Sep 10
3
Compiling problem flac 1.0.4 Mandrake 9.0 gcc 3.2
Hi,
I just read the thread about making 3dnow optimisations default and thought I would test it as I have an AMD here.
Unfortunately I can not even compile with default (no 3dnow) options.
./configure goes fine including this part:
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for g++... no
checking for
2004 Sep 10
0
getting framesize in client
--- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote:
> On Fri, Nov 08, 2002 at 12:39:52PM -0800, Josh Coalson wrote:
> > --- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote:
> > > I have few notes:
> > >
> > > It seems there is changed API in CVS again. So, what about adding
> > > function like
> > > unsigned
2011 Mar 11
2
int to string TypeError annoyance
Hi All,
In Perl,
$db->set_metadata( "foo", 10 );
Results in,
TypeError in method 'WritableDatabase_set_metadata', argument 3 of type
'std::string const &'
It looks like this is thrown by the SWIG
std::string typemap. Does someone with better SWIG skills than me know how
to fix SWIG such that it converts the int to a string rather than croaking?
(And
2004 Sep 10
2
getting framesize in client
I have few notes:
It seems there is changed API in CVS again. So, what about adding
function like
unsigned FLAC__format_frame_size(const FLAC__Frame *frame)
which returns size of the frame in bytes. This can be useful, for
example, in xmms plugin to display current bitrate like vorbis plugin
does.
If 'PERFORMER' field is missing in vorbis comment, it would be nice to
display
2007 Feb 21
0
Re: Is FLAC fully cooked for OS X yet?
The key to Arek comment is that the project files only work with
1.1.2 FLAC. Even in those days, the Xcode project was not fully
operational. I gave up on using it, and I think everyone else did.
You basically have no hope of just pulling it out of the repository
and expecting it to work.
What I do, and what I assume most successful FLAC developers on Mac
OS X are also doing, is