Commit Graph

7276 Commits

Author SHA1 Message Date
Thomas Adamcik
c23cad5d13 audio: Only emit tags changed when tags changed.
Previously we alerted AudioListeners about all new tags, now we filter it down
to just the changed ones. Only real reason for this is that the changed
messages spam the log output making debugging harder.
2016-02-14 12:36:19 +01:00
Stein Magnus Jodal
69a52bf031 Merge pull request #1443 from tkem/fix/1428
Fix #1428: Add m3u/base_dir confval.
2016-02-14 12:14:21 +01:00
Thomas Kemmer
6aef96a0d3 Fix #1428: Add m3u/base_dir confval. 2016-02-14 12:07:22 +01:00
Stein Magnus Jodal
6b873816af Merge pull request #1442 from trygveaa/fix/audio-config-buffer-size
audio: Add a config option for queue buffer size
2016-02-14 00:27:37 +01:00
Trygve Aaberge
59dadc6535 docs: Link to config and clarify buffer size 2016-02-14 00:21:22 +01:00
Trygve Aaberge
3e781310f9 tests: Add buffer_time to test config 2016-02-14 00:15:27 +01:00
Trygve Aaberge
0580a46688 audio: Add a config option for queue buffer size
It may help to increase this for users that are experiencing buffering
before track changes. Workaround for #1409.
2016-02-13 23:37:22 +01:00
Thomas Adamcik
23d0bd290d Merge pull request #1438 from jodal/fix/1430-audio-crash
audio: Workaround crash caused by race
2016-02-13 20:57:29 +01:00
Stein Magnus Jodal
68add6cda9 audio: Workaround crash caused by race
Fixes #1430. See #1222 for explanation and proper fix.
2016-02-10 23:03:36 +01:00
Stein Magnus Jodal
be568b769f Merge pull request #1437 from jodal/fix/1435-stop-on-sigterm
Stop GLib mainloop on SIGTERM
2016-02-10 21:59:33 +01:00
Stein Magnus Jodal
e88b2a7beb commands: Make GLib quit mainloop on SIGTERM
Fixes #1435
2016-02-10 21:37:28 +01:00
Stein Magnus Jodal
3a7e7cdde0 process: Rename exit_handler() to sigterm_handler() 2016-02-10 21:34:37 +01:00
Stein Magnus Jodal
4691bf5ea6 process: Remove unused BaseThread class 2016-02-10 21:09:16 +01:00
Stein Magnus Jodal
6d856e88bb docs: Add missing packages for Debian stable and Ubuntu < 15.10
Fixes #1434
2016-02-10 19:12:59 +01:00
Stein Magnus Jodal
c4da2c240f Merge pull request #1433 from trygveaa/fix/gst-init
Fix errors and warnings when importing Gst with gst-python >= 1.5.2
2016-02-08 09:00:24 +01:00
Trygve Aaberge
17d96edd41 gst1: Import GstPbutils after calling Gst.init
With gst-python 1.6.2, importing GstPbutils before calling Gst.init
gives some warnings.
2016-02-08 00:31:50 +01:00
Trygve Aaberge
fefb6aa5a2 gst1: Don't check Gst.is_initialized before calling Gst.init
As of gst-python 1.5.2, Gst.is_initialized throws a NotInitialized
exception if run before Gst.init. Gst.init should be a noop if run again
after the first call, so this should be safe.

This fixes #1432.
2016-02-08 00:31:45 +01:00
Trygve Aaberge
6cbfe86677 gst1: Send in an argument to Gst.init
As of gst-python 1.5.2, the init call requires one argument. The
argument is a list of the command line options. I don't think we need to
send any.

This relates to #1432.
2016-02-08 00:31:16 +01:00
Stein Magnus Jodal
e67e4c2c6e core: Avoid use of deprecated property 2016-02-07 22:06:48 +01:00
Stein Magnus Jodal
cd83084804 tests: Merge TestPlayUnknownHandling into TestUnplayableURI 2016-02-07 22:01:33 +01:00
Stein Magnus Jodal
1f4f0ab03b tests: Prefix some test classes with 'Test'
We don't want to rely on them subclassing unittest.TestCase.
2016-02-07 22:00:16 +01:00
Stein Magnus Jodal
4d0bc755a0 docs: Fix typo 2016-02-07 13:03:19 +01:00
Stein Magnus Jodal
78d10c4ab8 Reduce variation in Pykka imports
Which lets us reduce the amount of mocked modules when building docs
2016-02-07 12:55:13 +01:00
Stein Magnus Jodal
95b21599c7 docs: Update mocks for docs build without all deps
Fixes #1431
2016-02-07 12:45:16 +01:00
Stein Magnus Jodal
3f7fbf67f3 Fix remaining gi.repository imports 2016-02-07 12:45:12 +01:00
Stein Magnus Jodal
e7184cf0b3 Bump version to 2.0.0 because of GStreamer 1
Doing it right away instead of just before release for compat with
Mopidy-Spotify's develop branch.
2016-02-06 01:23:23 +01:00
Stein Magnus Jodal
ace7634804 gst1: Require GStreamer >= 1.2.3 2016-02-05 12:05:30 +01:00
Stein Magnus Jodal
0ac50ed499 docs: Update Arch source install to use new gst-python2 package
Thanks to Sergej Pupykin
2016-02-04 14:45:39 +01:00
Stein Magnus Jodal
b3f8460a94 gst1: Fix taglist creation 2016-02-04 00:24:44 +01:00
Stein Magnus Jodal
d0783db422 docs: Fix link text 2016-02-04 00:12:19 +01:00
Stein Magnus Jodal
79cdc16d64 Merge pull request #1426 from adamcik/fix/1404-duplicate-seeks
audio: Prevent double seeks in appsrc (fixes: #1404)
2016-02-03 23:40:31 +01:00
Stein Magnus Jodal
42a0f63ece docs: Update Icecast streaming section
Fixes #1351
2016-02-03 23:37:07 +01:00
Stein Magnus Jodal
851c206d45 docs: Move advanced audio setups out of config page 2016-02-03 23:11:18 +01:00
Thomas Adamcik
0336b6077c audio: Prevent double seeks in appsrc (fixes: #1404)
Sending the seek event to the playbin forwards it to all sinks. Which in turn
means on seek event per sink. To avoid this we inject the seek event in an
element before the tee.
2016-02-03 22:38:25 +01:00
Stein Magnus Jodal
30b50b64d3 docs: Update gst-{launch,inspect}-{0.10 => 1.0} 2016-02-03 22:24:20 +01:00
Stein Magnus Jodal
c749647a7b deps: lamemp3enc replaces lame in Gst1 2016-02-03 22:10:11 +01:00
Stein Magnus Jodal
dd7caa322d deps: mpg123audiocodec is an alternative to flump3dec and mad on Gst1 2016-02-03 22:09:52 +01:00
Stein Magnus Jodal
5e1633e1e2 deps: mpegaudioparse replaces mp3parse in Gst1 2016-02-03 22:09:22 +01:00
Trygve Aaberge
4e39f0969a docs: Capitalize TCP in service docs 2016-02-03 13:41:04 +01:00
Stein Magnus Jodal
ccb80bd5aa Merge pull request #1422 from trygveaa/docs/service-pulseaudio
docs: Add a note about PulseAudio when running as a service
2016-02-03 13:39:01 +01:00
Stein Magnus Jodal
92b4b4ec4f Merge pull request #1423 from trygveaa/docs/config-service-note
docs: Add a note about running as a service under config
2016-02-03 13:35:57 +01:00
Trygve Aaberge
7a06a71e6e docs: Add info about PulseAudio when running as a service
When using PulseAudio and running Mopidy as a service, some
configuration has to be added for this. This documents what you have to
do.

The setup is based on these:
https://wiki.archlinux.org/index.php/PulseAudio/Examples#PulseAudio_over_network
https://github.com/mopidy/mopidy/issues/954#issuecomment-73369712
2016-02-03 01:08:41 +01:00
Trygve Aaberge
0ca898fccd docs: Add a note about running as a service under config
If only reading the config page, you might not have realized that the
config is located in another place when running Mopidy as a service.
2016-02-03 01:05:51 +01:00
Stein Magnus Jodal
3429487f70 Merge pull request #1419 from mopidy/feature/gst1
Port to GStreamer 1.x and PyGI
2016-02-02 22:24:28 +01:00
Stein Magnus Jodal
673b1b7bdc gst1: Fix typo in docstring 2016-02-02 22:15:58 +01:00
Stein Magnus Jodal
00ed7e549c gst1: Length will always be zero, leave it out 2016-02-02 22:14:06 +01:00
Stein Magnus Jodal
e18ee4798f gst1: Fix docs typo 2016-02-02 15:00:57 +01:00
Stein Magnus Jodal
7df7b9d5f9 gst1: Add Audio API changes to changelog 2016-02-02 10:43:45 +01:00
Thomas Adamcik
af43612630 audio: Add a TODO and some notes on duration handling 2016-02-01 23:58:00 +01:00
Stein Magnus Jodal
eda91cfa96 gst1: Add missing __future__ import 2016-02-01 23:27:06 +01:00