Re: ANNOUNCE: gstreamermm-0.10.5
- From: Carlo Wood <carlo alinoe com>
- To: José Alburquerque <jaalburquerque cox net>
- Cc: gnome-announce-list gnome org, gtkmm-list gnome org
- Subject: Re: ANNOUNCE: gstreamermm-0.10.5
- Date: Sun, 22 Nov 2009 14:36:09 +0100
Hi, I'm trying to use gstreamermm, but run into problems.
Anything I'm doing wrong here:
hikaru:~/projects/speech/speech-objdir/src>./speech
** (speech:16125): CRITICAL **: gst_alsa_mixer_element_list_tracks: assertion `this->mixer != NULL' failed
The relevant code is:
[...]
int
main (int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
Gst::init(argc, argv);
// mixer gives access to the alsamixer.
Glib::RefPtr<Gst::Mixer> mixer = Gst::AlsaMixer::create("mixer");
if(!mixer)
{
std::cerr << "The mixer could not be created." << std::endl;
return -1;
}
// List the tracks of the mixer.
typedef Glib::ListHandle<Glib::RefPtr<Gst::MixerTrack> > mixer_list_handle_type;
mixer_list_handle_type mixer_list_handle = mixer->list_tracks(); // THIS LINE CAUSES THE ERROR
[...]
--
Carlo Wood <carlo alinoe com>
PS Note that using typedef Glib::ListHandle<Glib::RefPtr<const Gst::MixerTrack> > mixer_list_handle_type;
doesn't even compile:
/usr/include/glibmm-2.4/glibmm/listhandle.h:45: error: no match for ‘operator--’ in ‘--pend’
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]