Re: ANNOUNCE: gstreamermm-0.10.5



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]