diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2008-07-19 13:50:53 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2008-07-19 13:50:53 +0000 |
commit | 1b221b2cf91f148b24bcbfabbdef8a2a110f5c64 (patch) | |
tree | c3f9a7680831312ca4722fa85c18c1248444e360 /ext/pulse/pulsemixerctrl.c | |
parent | 08d27f468b962616e54913ab03d328245df89fe5 (diff) |
ext/Makefile.am: Finish hooking up pulseaudio plugin to the build.
Original commit message from CVS:
* ext/Makefile.am:
Finish hooking up pulseaudio plugin to the build.
* ext/pulse/pulsemixerctrl.c:
Fix compilation error.
Diffstat (limited to 'ext/pulse/pulsemixerctrl.c')
-rw-r--r-- | ext/pulse/pulsemixerctrl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/pulse/pulsemixerctrl.c b/ext/pulse/pulsemixerctrl.c index 5dac558c..f2fb3c5d 100644 --- a/ext/pulse/pulsemixerctrl.c +++ b/ext/pulse/pulsemixerctrl.c @@ -490,6 +490,9 @@ gst_pulsemixer_ctrl_timeout_event (pa_mainloop_api * a, pa_time_event * e, static void restart_time_event (GstPulseMixerCtrl * c) { + struct timeval tv; + pa_mainloop_api *api; + g_assert (c); if (c->time_event) @@ -498,9 +501,8 @@ restart_time_event (GstPulseMixerCtrl * c) /* Updating the volume too often will cause a lot of traffic * when accessing a networked server. Therefore we make sure * to update the volume only once every 50ms */ - struct timeval tv; - pa_mainloop_api *api = pa_threaded_mainloop_get_api (c->mainloop); + api = pa_threaded_mainloop_get_api (c->mainloop); c->time_event = api->time_new (api, pa_timeval_add (pa_gettimeofday (&tv), UPDATE_DELAY), |