Mercurial > hg > release > icedtea7-2.2
changeset 2518:ad47e9ec886f
Fix pulse audio regression.
author | Denis Lila <dlila@redhat.com> |
---|---|
date | Mon, 20 Jun 2011 14:14:56 -0400 |
parents | 4d1216f65423 |
children | 5a4cfe5798e3 |
files | ChangeLog pulseaudio/src/native/org_classpath_icedtea_pulseaudio_Stream.c |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Jun 20 11:23:24 2011 -0400 +++ b/ChangeLog Mon Jun 20 14:14:56 2011 -0400 @@ -1,3 +1,9 @@ +2011-06-20 Denis Lila <dlila@redhat.com> + + * pulseaudio/src/native/org_classpath_icedtea_pulseaudio_Stream.c + (SET_STREAM_ENUM): Add an underscore after java_prefix so that + the produced string matches the names in Stream.java. + 2011-06-20 Denis Lila <dlila@redhat.com> * pulseaudio/src/java/org/classpath/icedtea/pulseaudio/PulseAudioDataLine.java
--- a/pulseaudio/src/native/org_classpath_icedtea_pulseaudio_Stream.c Mon Jun 20 11:23:24 2011 -0400 +++ b/pulseaudio/src/native/org_classpath_icedtea_pulseaudio_Stream.c Mon Jun 20 14:14:56 2011 -0400 @@ -254,8 +254,12 @@ } // used to set stream flags and states. +// The names in Stream.java have a {STATE_,FLAG_} prefix, but we don't want to +// add the underscore in every line in init_constants, so we add it here. If +// constants with no prefix are ever introduced (i.e. java_prefix is "", +// it's important to remove the ##_ ) #define SET_STREAM_ENUM(env, clz, java_prefix, state_name) \ - SET_JAVA_STATIC_LONG_FIELD_TO_PA_ENUM(env, clz, java_prefix, STREAM, state_name) + SET_JAVA_STATIC_LONG_FIELD_TO_PA_ENUM(env, clz, java_prefix##_, STREAM, state_name) /* * Class: org_classpath_icedtea_pulseaudio_Stream