//g_print ("\n is_network or bluetooth stream = %i \n", is_network_stream);
208
//g_debug ("\n is_network or bluetooth stream = %i \n", is_network_stream);
209
209
210
210
for (d = devices; d != NULL; d = d->next) {
211
211
device = d->data;
217
217
218
218
if (is_network_stream) {
219
219
if (stream_id == gvc_mixer_stream_get_id (stream)) {
220
g_print ("\n lookup device from stream - %s - it is a network_stream \n",
220
g_debug ("\n lookup device from stream - %s - it is a network_stream \n",
221
221
gvc_mixer_ui_device_get_description (device));
222
222
return device;
223
223
}
226
226
const GvcMixerStreamPort *port;
227
227
port = gvc_mixer_stream_get_port (stream);
228
228
229
//g_print ("\n \n lookup device from stream - get port from stream %s", gvc_mixer_stream_get_description (stream));
229
//g_debug ("\n \n lookup device from stream - get port from stream %s", gvc_mixer_stream_get_description (stream));
230
230
231
231
if (stream_id == gvc_mixer_stream_get_id (stream) &&
232
232
g_strcmp0 (gvc_mixer_ui_device_get_port(device),
233
233
port->port) == 0) {
234
g_print ("\n \n lookup-device-from-stream found device \n device description %s \n device port = %s \n device stream id %i \n AND \n stream port = %s stream id %u and stream description %s \n",
234
g_debug ("\n \n lookup-device-from-stream found device \n device description %s \n device port = %s \n device stream id %i \n AND \n stream port = %s stream id %u and stream description %s \n",
235
235
gvc_mixer_ui_device_get_description (device),
236
236
gvc_mixer_ui_device_get_port(device),
237
237
stream_id,
242
242
}
243
243
}
244
244
}
245
g_print ("\n gvc_mixer_control_lookup_device_from_stream - Could not find a device ? %s \n", gvc_mixer_stream_get_description (stream));
245
g_debug ("\n gvc_mixer_control_lookup_device_from_stream - Could not find a device ? %s \n", gvc_mixer_stream_get_description (stream));
g_print ("\n Match device with stream \n We have a match with description : %s \n origin : %s \n cached already with device id %u, \n => set stream id to %i \n\n ",
1222
g_debug ("\n Match device with stream \n We have a match with description : %s \n origin : %s \n cached already with device id %u, \n => set stream id to %i \n\n ",