~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/audio-sources.c

  • Committer: Osmo Antero
  • Date: 2021-11-03 12:22:08 UTC
  • Revision ID: osmoma@gmail.com-20211103122208-xfb1muq9pgtwm2xf
Fix in the audio_sources_get_gstreamer_plugin() function. Also removed pipeline for obsolete speex (spx) encoder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
 
255
255
gchar *audio_sources_get_gstreamer_plugin() {
256
256
 
257
 
        // Make a pipeline test and set g_source_plugin.
258
 
        // This is either "pulsesrc" or "pipewiresrc"
 
257
        // Check if we are running "pulsesrc" or "pipewiresrc"
259
258
 
260
259
        // Already set? 
261
260
        if (g_source_plugin) {
271
270
    GList *n = g_list_first(g_device_list);
272
271
    while (n) {
273
272
        DeviceItem *item = (DeviceItem*)n->data;
274
 
        if (item &&  is_integer(item->id) && str_compare(item->id_attrib, "path", FALSE)) {
 
273
        
 
274
        if (item && item->type == AUDIO_INPUT && is_integer(item->id) && !str_compare(item->id_attrib, "path", FALSE)) {
275
275
            is_pipewire = TRUE;
276
276
            break;
277
277
        }
294
294
    G_UNLOCK(g_device_list);
295
295
        
296
296
#if 0 
 
297
                // Make a pipeline test and set g_source_plugin.
 
298
 
297
299
            // This did not work reliably. It should work!
298
300
        
299
301
        // Test pipewiresrc