~ubuntu-branches/ubuntu/precise/gst-plugins-base0.10/precise-updates

« back to all changes in this revision

Viewing changes to ext/alsa/gstalsamixer.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2011-12-12 12:40:13 UTC
  • mfrom: (36.1.15 experimental)
  • Revision ID: package-import@ubuntu.com-20111212124013-onyadfb150d8c5dk
Tags: 0.10.35.2-2
* debian/libgstreamer-plugins-base.install:
  + Add license translations file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
  snd_mixer_t *         handle;
54
54
 
55
55
  GstTask *             task;
56
 
  GStaticRecMutex *     task_mutex;
57
 
  GStaticRecMutex *     rec_mutex;
 
56
  GStaticRecMutex       task_mutex;
 
57
 
 
58
#if !GLIB_CHECK_VERSION (2, 31, 0)
 
59
  GStaticRecMutex       rec_mutex;
 
60
#else
 
61
  GRecMutex             rec_mutex;
 
62
#endif
58
63
 
59
64
  int                   pfd[2];
60
65
 
65
70
  GstAlsaMixerDirection dir;
66
71
};
67
72
 
 
73
#if !GLIB_CHECK_VERSION (2, 31, 0)
 
74
#define GST_ALSA_MIXER_LOCK(mixer)   g_static_rec_mutex_lock (&mixer->rec_mutex)
 
75
#define GST_ALSA_MIXER_UNLOCK(mixer) g_static_rec_mutex_unlock (&mixer->rec_mutex)
 
76
#else
 
77
#define GST_ALSA_MIXER_LOCK(mixer)   g_rec_mutex_lock (&mixer->rec_mutex)
 
78
#define GST_ALSA_MIXER_UNLOCK(mixer) g_rec_mutex_unlock (&mixer->rec_mutex)
 
79
#endif
68
80
 
69
81
GstAlsaMixer*   gst_alsa_mixer_new              (const gchar *device,
70
82
                                                 GstAlsaMixerDirection dir);