Mercurial > audlegacy-plugins
comparison src/flacng/plugin.c @ 1343:36364adc29cd
flacng: Update plugin for new threading model.
| author | William Pitcock <nenolod@atheme-project.org> |
|---|---|
| date | Mon, 23 Jul 2007 17:20:50 -0500 |
| parents | a33da9237bed |
| children | d3fb6dfcd2f8 |
comparison
equal
deleted
inserted
replaced
| 1342:ebded68de2dd | 1343:36364adc29cd |
|---|---|
| 598 | 598 |
| 599 input->playing = TRUE; | 599 input->playing = TRUE; |
| 600 | 600 |
| 601 flac_ip.set_info(get_title(input->filename, main_info), l, -1, main_info->stream.samplerate, main_info->stream.channels); | 601 flac_ip.set_info(get_title(input->filename, main_info), l, -1, main_info->stream.samplerate, main_info->stream.channels); |
| 602 | 602 |
| 603 thread = g_thread_create(flac_play_loop, input, TRUE, NULL); | 603 thread = g_thread_self(); |
| 604 flac_play_loop(input); | |
| 604 | 605 |
| 605 _LEAVE; | 606 _LEAVE; |
| 606 } | 607 } |
| 607 | 608 |
| 608 /* --- */ | 609 /* --- */ |
