fix leftover macro loop in JACK sound driver

This commit is contained in:
Matias Hilden
2019-12-08 13:52:07 +02:00
parent c5096d24de
commit cb10b61d34
+2 -3
View File
@@ -4,7 +4,6 @@
#include "RageUtil.h"
#include "PrefsManager.h"
#include "ProductInfo.h"
#include "Foreach.h"
REGISTER_SOUND_DRIVER_CLASS( JACK );
@@ -144,9 +143,9 @@ RString RageSoundDriver_JACK::ConnectPorts()
// jack_port_name to use their canonical name. (I'm not sure
// if that second step is necessary, I've seen something about
// "aliases" in the docs.)
FOREACH( RString, portNames, portName )
for ( RString const &portName : portNames )
{
jack_port_t *out = jack_port_by_name( client, *portName );
jack_port_t *out = jack_port_by_name( client, portName );
// Make sure the port is a sink.
if( ! ( jack_port_flags( out ) & JackPortIsInput ) )
continue;