[gstreamer-bugs] [Bug 152864] [PATCH] GstAlsaMixer doesn't support signals

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed May 23 02:40:55 PDT 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=152864

  GStreamer | gst-plugins-base | Ver: HEAD CVS




------- Comment #35 from Marc-Andre Lureau  2007-05-23 09:40 UTC -------
Created an attachment (id=88652)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=88652&action=view)
Monitor ALSA fds with a GstTask

With this set of 4 patches, I got crashes in message creation. Something I
misused, most probably with GstStructure:

#6  0xb7f7f6dc in gst_structure_new (name=0x0, firstfield=0xb7cd3271 "track")
at gststructure.c:179
#7  0xb7ccfe93 in gst_mixer_volume_changed (mixer=0x80c8860, track=0x80d3800,
volumes=0x80d3838) at mixer.c:330


To poll ALSA fds, I decided to drop the custom GSource and use poll directly
inside the task.
I am not confident how to handle errors in the task.
I don't know if RecMutex are necessary (it depends if ALSA plugins could call
cb from different threads - ideally not)
I am unsure about the (un)locking places (I am not an expert in MT
environnement)

To sum up... this is a draft patch :)
---
 ext/alsa/gstalsamixer.c |  261 +++++++++++++++++++----------------------------
 ext/alsa/gstalsamixer.h |    5 +-
 2 files changed, 108 insertions(+), 158 deletions(-)


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=152864.




More information about the Gstreamer-bugs mailing list