Commit Graph

464 Commits

Author SHA1 Message Date
Nedko Arnaudov e0ec247159 split vclient functionality
vgraph manipulation is going to be able to do more than split
2011-06-01 03:04:18 +03:00
Nedko Arnaudov 90b5b6d881 ladishd: fix use of uninitialized memory (app_guid again)
For app-less clients, app_uuid is not initialized
2011-06-01 00:14:52 +03:00
Nedko Arnaudov 0ba807b478 ladishd: don't override existing LD_PRELOAD
valgrind for example uses LD_PRELOAD as well.
2011-05-20 01:02:37 +03:00
Nedko Arnaudov 03d8d0c52e ladishd: fix the previous commit
The previous commit accidentally removed a log dump call.
2011-05-19 23:17:46 +03:00
Nedko Arnaudov 62a15d55e2 ladishd: fix use of uninitialized memory
For app-less clients, app_uuid is not initialized
2011-05-16 06:57:01 +03:00
Nedko Arnaudov facd3090fd ladishd: fix log line 2011-05-16 06:54:22 +03:00
Nedko Arnaudov 7f512b33fc ladishd: fix use of uninitialized memory
sizeof(bool) != sizeof(dbus_bool_t)
on x86, 1 != 4
2011-05-16 06:52:13 +03:00
Nedko Arnaudov deab81c2ef ladishd: Fix use of uninitialized memory
room template objects don't use project related members
2011-05-16 05:56:01 +03:00
Nedko Arnaudov 18c88a94c3 Fix memory leak in recent_studio_callback() 2011-05-16 05:48:53 +03:00
Nedko Arnaudov f0e233055b Fix use of uninitalized member
The use of uninitalized member was caused by the recent revert.

The ladish_room::object_path member is not actually used only for room
template objects.
2011-05-16 03:42:34 +03:00
Nedko Arnaudov dc11cfe515 daemon: move ladish_room::graph member to the common section
It is used for room template objects as well
2011-05-16 03:40:35 +03:00
Nedko Arnaudov 64923f3a86 Revert "Fixed uninitialized vars in rooms created from templates"
This reverts commit 9bf795905f.

ladish_room_create_interal() is suposed to allocate the struct and
initialize the name and uuid members. The template member is supposed to
be initialized by the caller functions, either ladish_room_create() or
ladish_room_create_template(). The siblings member is initialized
later, when the room is actually added to the appropriate list.

The graph member is used by both room templates and room objects. This
will be fixed in the following commit.

All other ladish_room members are not valid for room template objects.
2011-05-16 03:35:00 +03:00
Nedko Arnaudov 1612b562af fix a memory leak after strdup() failure 2011-05-16 01:40:57 +03:00
Nedko Arnaudov b9f820573e coding style fix 2011-05-16 01:35:52 +03:00
Dan A. Muresan 449b309cb6 Fixed a memory leak (room.object_path) 2011-05-14 16:24:52 +03:00
Dan A. Muresan 9bf795905f Fixed uninitialized vars in rooms created from templates 2011-05-14 16:24:46 +03:00
Dan A. Muresan 0b568aeb99 Fixed a memory leak (ladish_recent_store.items [i]) 2011-05-14 15:40:10 +03:00
Nedko Arnaudov 5c1bde8066 Fix build on less common architectures.
Fixes FTBFS on alpha,armel,ia64,kfreebsd-*,powerpc,sh4.
Origin: Ubuntu, https://launchpad.net/bugs/647091
Bug-Ubuntu: https://launchpad.net/bugs/647091
Bug-Debian: http://bugs.debian.org/620315

Submitted by Alessio Treglia <alessio@debian.org> as
http://git.debian.org/?p=pkg-multimedia/ladish.git;a=blob;f=debian/patches/0001-disable_stacktrace.patch;h=33b6b1b50760f
2011-04-22 04:14:51 +03:00
Nedko Arnaudov 91b87783d7 ladishd: workaround for bug in jack2/jackdbus
http://trac.jackaudio.org/ticket/209
2011-01-02 05:04:29 +02:00
Nedko Arnaudov 891805634d ladishd: better handling for L1 apps with a2j ports. Fix for #62 2011-01-02 04:27:21 +02:00
Nedko Arnaudov d65ebbbf5b daemon: fix typo in doxygen documentation 2010-12-31 19:55:13 +02:00
Nedko Arnaudov d39a94fe33 ladishd: fix hidden connection save. Fix for #151
Instead of checking whether connection ports ares link or system ones,
now they are being checked for being hidden.
2010-12-30 05:14:10 +02:00
Nedko Arnaudov f1d0a2e20b ladishd: when saving xml, don't write the URI_A2J_PORT dict keys
URI_A2J_PORT is set on jack port appear
2010-12-30 02:17:48 +02:00
Nedko Arnaudov 6cb1de6104 when appless ports are reused for appful puposes, set the app uuid. Fixes #160 2010-12-30 01:55:20 +02:00
Nedko Arnaudov 9575aefbb4 URI_CANVAS_A2J renamed to URI_A2J_PORT 2010-12-29 23:43:16 +02:00
Nedko Arnaudov b49d1ef23d ladishd: set a port property that indicating whether the port is a2j one. Partial fix for #154 2010-12-29 23:21:52 +02:00
Nedko Arnaudov 9d0be997ac ladishd: fix for #152 2010-12-28 14:01:56 +02:00
Nedko Arnaudov fb7138915e ladishd: dump params of loaded apps after xml load 2010-12-28 06:57:32 +02:00
Nedko Arnaudov 64a29c2304 ladishd: write vclient app_uuid when saving 2010-12-28 06:51:18 +02:00
Nedko Arnaudov 5288134676 ladishd: save&restore app associations of vclients. Fix for #149 2010-12-28 04:33:44 +02:00
Nedko Arnaudov 918cecca74 ladishd: improve log on save and on graph dump 2010-12-28 04:33:44 +02:00
Nedko Arnaudov da4a6eb2a1 ladishd: save hidden porst of stopped apps. 2010-12-27 15:34:35 +02:00
Nedko Arnaudov 4f7b78388f ladish_control: vgraph connection management. #125 2010-12-27 06:16:10 +02:00
Nedko Arnaudov 53dc55330d ladishd: fix unload of not loaded (just created) projects. Fix for #148 2010-12-27 03:19:10 +02:00
Nedko Arnaudov 9868de418b ladishd: don't save hidden ports of runnings apps 2010-12-27 01:37:14 +02:00
Nedko Arnaudov 25a55f5f3f ladishd: fix jack graph filtering on save 2010-12-27 01:19:19 +02:00
Nedko Arnaudov 1d029ffd76 Move graph iteration filtering to callbacks 2010-12-26 21:21:36 +02:00
Nedko Arnaudov 1f6822c5e9 ladishd: remove skip_hidden parameter of ladish_graph_copy()
ATM ladish_graph_copy() is always copied without skipping hidden elements.
skip_hidden mechanism must be replaced with filtering in callbacks,
because it is tricky and because app filtering does not belong to
generic graph object.
2010-12-26 21:09:42 +02:00
Nedko Arnaudov 846ef1a252 ladishd: dump vgraph of ports 2010-12-26 21:09:42 +02:00
Nedko Arnaudov 6b966841dd ladishd: when saving, properly skip hidden connections just like ports. Fix for #143
this is improvement of 93fe0427c1
2010-12-26 21:09:09 +02:00
Nedko Arnaudov 072bae001a ladishd: make vgraph filtering in interlink_client() actually work 2010-12-25 18:17:19 +02:00
Nedko Arnaudov 6a58ad88a4 ladishd: when interlinking on load, ignore clients of other vgraphs. Fix for #137 2010-12-25 04:36:00 +02:00
Nedko Arnaudov a3956df783 ladishd: send termination signals to firstborn pgrp. Fix for #123
if the pgrp of the first child is different from pgrp of the jack client,
send SIGTERM and SIGKILL to both process groups.

This changeset also switches termination signals send from pid to pgrp
2010-12-25 03:52:39 +02:00
Nedko Arnaudov 5559811205 ladishd: fix occasional crash on app stop (#141)
vgraph clients that are created by a2j port appear and are later
reused for native jack ports are now interlinked with the jack
client when the first jack port appears.
2010-12-25 01:44:55 +02:00
Nedko Arnaudov 93fe0427c1 ladishd: Don't skip hidden a2j ports. Fix for #140 and #130
if the app is stopped, its a2j ports will be hidden; a2j client is not
associated with any app, only a2j ports are.
2010-12-24 17:41:08 +02:00
Nedko Arnaudov df4def70b2 ladishd: data integrity checks 2010-12-23 04:20:52 +02:00
Nedko Arnaudov d4946efe30 gladish: Don't log dbus error when studio is not loaded on gladish start 2010-12-23 02:36:58 +02:00
Nedko Arnaudov 613f73b822 log as error a condition that causes project load failure 2010-12-18 20:34:22 +02:00
Nedko Arnaudov cf12c2e3e0 daemon: fix wrong return value when setting project description or notes 2010-12-07 05:29:20 +02:00
Nedko Arnaudov 68049ee6cb ladishd: don't create two vclients with same name
If the app first creates alsa (a2j) port, the created vclient is
not intrelinked because there is no jack client to interlink.
When the first jack port appears, because the jack client has
no interlinked client, a new vclient with same name was created.

This changeset implements a search by app uuid before new vclient
is created.
2010-12-02 05:40:28 +02:00