duplicated input device entries in sound recorder

Bug #42022 reported by Miguel Gaspar
54
Affects Status Importance Assigned to Milestone
GNOME media utilities
Fix Released
Medium
gnome-media (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs
Dapper
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Steps to reproduce:
1- launch Sound Recorder (gnome-sound-recorder);
2- check the available input sources in "Record from Input" drop-down list;
3- start a recording, then stop the recording;
4- check the input list again: all items are repeated.

This behavior was observed in Sound Recorder 2.14.0, provided by gnome-media-2.14.0-0ubuntu1, in an Asus L3C. The sound hardware is Intel 82801CA/CAM AC'97 Audio Controller.

Revision history for this message
Miguel Gaspar (ghaspias) wrote :

I looked at the source for grecord, in gsr-window.c the callback for the record action calls fill_record_input():

static void
record_cb (GtkAction *action,
    GSRWindow *window)
{
 GSRWindowPrivate *priv = window->priv;

 if (priv->record) {
  shutdown_pipeline (priv->record);
  if (!make_record_source (window)) exit (1);
  fill_record_input (window);
 }

 if ((priv->record = make_record_pipeline (window))) {
  window->priv->len_secs = 0;
  window->priv->saved = FALSE;

  g_object_set (G_OBJECT (priv->record->sink),
         "location", priv->record_filename,
         NULL);

  gst_element_set_state (priv->record->pipeline, GST_STATE_PLAYING);
 }
}

But fill_record_input() appends to the combo-box:

static void
fill_record_input (GSRWindow *window)
{
 GstElement *e;
 const GList *l;
 int i = 0;

 g_return_if_fail (GST_IS_MIXER (window->priv->mixer));

 for (l = gst_mixer_list_tracks (window->priv->mixer); l != NULL; l = l->next) {
  GstMixerTrack *t = l->data;
  if (t->flags & GST_MIXER_TRACK_INPUT) {
   gtk_combo_box_append_text (GTK_COMBO_BOX (window->priv->input), t->label);
   ++i;
  }
  if (t->flags & GST_MIXER_TRACK_RECORD) {
   gtk_combo_box_set_active (GTK_COMBO_BOX (window->priv->input), i - 1);
  }
 }
}

I don't know why fill_record_input() is called in record_cb(), but either by removing that call or by changing fill_record_input(), this should be easy to correct.

Revision history for this message
Miguel Gaspar (ghaspias) wrote :

This is already filled in gnome bugzilla as bug #329922.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for the work on that

Changed in gnome-media:
assignee: nobody → desktop-bugs
status: Unconfirmed → Confirmed
Revision history for this message
Andy Bovett (abovett) wrote :

I'd like to add that not only do the sources get repeated, but if you change the selected source, it changes next back time you hit "Record".

There also seem to be other problems with recording via sound recorder (very quiet or no sound on some systems) but I guess they are separate bugs. Still, it would be nice if Dapper could ship with a basically working Sound Recorder - at the moment it seems to be broken to some extent on every system I've tried it on :(

Andy B

Revision history for this message
Sebastien Bacher (seb128) wrote :

Right, other issues are candidates for other bugs. That one has a dapper milestone, we will try to fix it for dapper. If the program doesn't work fine for you and you want to help sorting that before dapper feel free to open bugs about what doesn't work fine

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

For information, I push a patch on http://bugzilla.gnome.org/show_bug.cgi?id=329922. it seems to correct the bug but need to confirm with the maintainer.

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote : The Fix

I attach the fix here too.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Fix uploaded to edgy:

 gnome-media (2.14.2-1ubuntu4) edgy; urgency=low
 .
   * debian/patches/07_duplicate_entries_for_combo.patch:
     - fix the grecord combo list duplicating entries on selection,
       thanks to Baptiste Mille-Mathias <email address hidden>
       for working on that (Ubuntu: #42022)

Changed in gnome-media:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

Opening a dapper task, I'll backport the patch if we get no complain about it breaking something to edgy

Changed in gnome-media:
assignee: nobody → desktop-bugs
importance: Untriaged → Low
status: Unconfirmed → Confirmed
Changed in gnome-media:
status: Confirmed → Fix Released
Revision history for this message
Florian Boucault (fboucault) wrote :

It worked well for me during the last months.

Changed in gnome-media:
status: Fix Released → Confirmed
Revision history for this message
Florian Boucault (fboucault) wrote :

Let's take care of it now :)

Changed in gnome-media:
status: Confirmed → Fix Released
Changed in gnome-media (Ubuntu Dapper):
status: Confirmed → Fix Released
Changed in gnome-media:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.