Ticket #233: ffado-audiofire_midi_fix.diff
| File ffado-audiofire_midi_fix.diff, 1.4 kB (added by euan, 1 year ago) |
|---|
-
src/libavc/general/avc_plug.cpp
old new 374 374 c.m_index = 1; 375 375 c.m_portType = 0; 376 376 c.m_name = "Unknown"; 377 c.m_buildSource = -1; // Flag this as a temp build 377 378 378 379 c.m_nrOfChannels = m_nrOfChannels; 379 380 for(int i=0; i<m_nrOfChannels; i++) { … … 834 835 "Propagating info from plug '%s' to plug '%s'\n", 835 836 p->getName(), getName() ); 836 837 837 if (m_clusterInfos.size()==0 || m_clusterInfos[0].m_ streamFormat== -1) {838 if (m_clusterInfos.size()==0 || m_clusterInfos[0].m_buildSource == -1) { 838 839 m_clusterInfos=p->m_clusterInfos; 840 841 if (m_clusterInfos.size() > 0) 842 m_clusterInfos[0].m_buildSource == 0; // No longer a temp instance... 839 843 } 840 844 841 845 m_nrOfChannels=p->m_nrOfChannels; -
src/libavc/general/avc_plug.h
old new 188 188 nr_of_channels_t m_nrOfChannels; 189 189 ChannelInfoVector m_channelInfos; 190 190 stream_format_t m_streamFormat; 191 int m_buildSource; // To track how we are instantiated 191 192 }; 192 193 typedef std::vector<ClusterInfo> ClusterInfoVector; 193 194
