Andrey Alekseenko
be54804768
Remove access to freed memory
...
If rtsp_unlink_waiting(m) is called and actually destroys m, it's not
safe to pass it to rtsp_unlink_outgoing later.
We make rtsp_unlink_waiting and rtsp_unlink_outgoing return true if they
destroy the message, and in this case we make sure not to try freeing it
again.
2020-09-20 06:38:05 +02:00
Andrey Alekseenko
57d05a1808
Remove double free
...
The function parser_submit_data is only called from parser_feed_char_data_body, which frees the buffer pointer anyway.
2020-09-20 06:38:05 +02:00
Andrey Alekseenko
2ef4c1f40f
Random static analysis fixes
2020-09-20 06:38:05 +02:00
Alberto Fanjul
4111333521
Set readline as required package
...
autotools already set it, but cmake and meson no.
2019-08-27 11:01:22 +02:00
Warren Crossing
58dd6c411e
Add --syslog flag to see wpa logs in syslog
2019-08-27 10:05:10 +02:00
Alberto Fanjul
c3c868e523
refactor to fix clang AST parsing
2018-10-06 15:25:39 +02:00
albfan
8151bb8cbd
whitespace
2018-09-30 12:41:40 +02:00
Alberto Fanjul
4e67272f2f
Avoid log errors
...
Do not output error settings null values or configuring unmanaged links
2018-09-22 08:51:54 +02:00
Xu Fasheng
8b76e3c212
Make miracle-wifid conexists with other network tools
...
The new option --lazy-managed will let miracle-wifid don't managed the
links automatically. Instead, the link will be managed only when the new
DBus property Managed was set to true. So this will be possible that
miracle-wifid could be coexists with other network tools like
networkmanager.
For example, unmanage the device in networkmanager with setting the DBus
property org.freedesktop.NetworkManager.Device.Managed to false and
manage it in miracle-wifid with setting
org.freedesktop.miracle.wifi.Link.Managed to true, then both them could
works and don't need to kill each other.
Besides, there is new command named make-managed in miracle-wifictl and
miracle-sinkctl.
closes #135 , #75
2018-09-21 13:41:16 +02:00
Alberto Fanjul
5bfc97a72c
Customizable config_methods
2018-09-21 13:41:16 +02:00
albfan
1d01ae2117
sink: Enable all resolutions by default
2018-02-22 22:30:09 +01:00
Derek 呆
a6f672311e
Logging Formation failure
...
miracle-sinkctl: Fix signal emotion of FormationFailure
miracle-wifid: Log formation failure
2017-04-15 15:59:46 +02:00
Derek Dai
6b5907ad45
Add meson build system
...
Use it as:
$ meson build
$ cd build
$ ninja build
$ ninja test
$ sudo ninja install
2017-04-14 11:32:27 +02:00
Eric Nelson
fe9a39bee8
miracle-sinkctl: don't use readline if no stdin
...
Signed-off-by: Eric Nelson <eric@nelint.com>
2017-04-08 09:53:36 +02:00
albfan
c3f6b7f683
Fix cmake compilation for ini files
2017-04-07 21:49:43 +02:00
albfan
b8de12cab3
Avoid config stdin if not a tty
...
Allow to run miracle-sinkctl as a service
relates to #98
2017-04-05 07:51:11 +02:00
albfan
04a1ec8aa3
Ini files for miracle-wifid
...
Honor ~/.miraclecast or ~/.config/miraclecastrc
Properties avaliable:
- wifid: log-level
- sinkctl: external-player, rstp-port, log-level, log-journal-level, autocmd
- wifictl: log-level, journal-log-level
Command line has always higher priority over ini files
fixes #113
2017-04-04 22:00:39 +02:00
albfan
a9da0067e3
Improve autocompletion
...
Standardize help commands
Add autocompletion for short arguments
Install autocompletion
2017-03-26 09:31:32 +02:00
albfan
3628f789b4
Add external player config
...
Allow to run custom player. It will be run within a wrapper that
respect -p/--port, option at least
fixes #87
2017-03-25 12:48:04 +01:00
albfan
016159bb1e
Check running as root
...
Detect running with elevated privileges to access dbus
fixes #89
2017-03-25 11:55:28 +01:00
Alberto Fanjul
e5795edd04
Read UIBC capability in raw mode
...
Some devices send its UIBC capabilities with spaces. Read in raw mode to parse port correctly
2016-10-28 11:37:16 +02:00
albfan
cedfeeebe1
Debug GStreamer execution
...
Allow to config gstreamer log level
2016-10-23 10:20:12 +02:00
albfan
472fbf4a24
Check source UIBC capability
...
If source has no UIBC capability don't try to connect UIBC controller,
and listen UIBC setting to disable UIBC
relates to #115
2016-10-23 09:46:02 +02:00
albfan
5e93ad0638
Fix compilation warnings
2016-10-23 04:27:17 +02:00
albfan
cd23da3c74
Fix finding subnet
2016-10-01 12:29:48 +02:00
Derek Dai
3886dcb7c7
add option --use-dev to miracle-wifid to workaround the 'no ifname' issue
2016-09-14 16:01:54 +08:00
Derek Dai
a9266e5055
re-dispatch wpa_message with ifname!=NULL from supplicant_global_fn() to supplicant_dev_fn()
2016-09-14 15:01:26 +08:00
Derek Dai
1cc667a00c
don't modify raw message
2016-09-14 15:01:26 +08:00
albfan
36be37ed8b
Fix wpa_supplicant search when path did not exists
2016-08-26 06:29:34 +02:00
Derek Dai
4601514799
find wpa_supplicant through PATH instead of option --wpa-bindir
2016-08-15 17:35:38 +08:00
Alberto Fanjul
7228c3e63d
Change to support CI environment
2016-07-23 20:20:58 +02:00
albfan
412ce067b6
Use resolution provided to resize viewer
2016-07-23 19:15:38 +02:00
albfan
3f2266e254
Kill uibc viewer subprocess
...
closes #93
2016-07-16 15:29:13 +02:00
albfan
1e69dd6dae
UIBC support
...
Basic support for UIBC (single mouse events and key events)
- Option --uibc on miracle-sinkctl to enable it
- Option --log-journal-level to see player execution on journalctl
- Controller for uibc miracle-uibcctl
- Player based on PyGtk to receive and communicate mouse and keyevents
closes #57
2016-07-02 15:47:15 +02:00
albfan
4637409d0b
relay on PATH to find executables
2016-07-02 15:22:13 +02:00
albfan
c94be167c8
open UIBC connection
...
relates to #57
2016-04-02 13:15:38 +02:00
albfan
5440572335
Version 1.0
2016-01-24 20:54:40 +01:00
albfan
117ed2071b
Parse text log level
...
closes #42
2015-08-30 14:53:12 +02:00
albfan
73adee82bf
Select interface to use
...
Start miraclecast against interface of choose.
- By tagged udev device
- By `--interface` or `-i` option
resolves #36 , resolves #43 , resolves #46
2015-08-30 11:20:41 +02:00
albfan
0bf42867ad
log wpa messages
2015-08-22 16:48:51 +02:00
albfan
781231db26
comment avaliable prov methods
...
Use only pbc method, but keep commented all available methods
2015-08-22 12:18:46 +02:00
albfan
81e71c8387
ignored wpa events
...
relates to #37
2015-07-29 20:33:27 +02:00
albfan
80aefc1611
config udev tag
...
relates to #36
2015-07-29 20:27:51 +02:00
albfan
30459133ed
prov type for default config
2015-07-29 20:18:01 +02:00
albfan
bc1705d82c
remove commented code
2015-07-29 20:18:01 +02:00
albfan
de76677bf8
manage prov type
2015-07-29 20:18:01 +02:00
albfan
756535a61d
vtable callback changes
...
relates #35
2015-07-28 20:14:27 +02:00
albfan
b0f985069c
change callback interface
...
resolves #30
2015-07-04 05:06:26 +02:00
albfan
544758f3d2
cleanup cmake config
2015-04-12 10:34:42 +02:00
albfan
d45cb7ef3a
Merge branch 'cmake'
2015-04-11 23:31:16 +02:00