Commit Graph

7510 Commits

Author SHA1 Message Date
Jens Luetjen
49849fa5b3 Find all playable tracks in a shuffled playlist.
Run two times through the tracklist to be sure to not miss a playable track.
2016-02-03 20:49:43 +01:00
Jens Luetjen
e51b8c58be Fix for: mpd client starts with empty tracklist.
When restoring state, increment the tracklist version number.
2016-02-03 20:47:10 +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
Stein Magnus Jodal
1daf582558 gst1: Check GStreamer version on start
If GStreamer is too old, it fails like this:

  $ mopidy
  ERROR: Mopidy requires GStreamer >= 1.2, but found GStreamer 1.0.0.
2016-02-01 23:12:16 +01:00
Stein Magnus Jodal
d9f53d5da3 gst1: Move all gi imports to a helper module 2016-02-01 23:09:28 +01:00
Stein Magnus Jodal
b143898cd3 gst1: Adjust list of GStreamer packages needed on Arch 2016-02-01 20:27:36 +01:00
Stein Magnus Jodal
7daed28416 docs: ==dev installs are deprecated 2016-02-01 20:02:32 +01:00
Stein Magnus Jodal
dce7e1551d gst1: Simplify Gentoo install docs 2016-02-01 13:37:16 +01:00
Stein Magnus Jodal
906a48eaf7 gst1: Fix digraph name
It was probably broken by some regexp replacement.
2016-02-01 13:14:44 +01:00
Stein Magnus Jodal
1c4b36f66a gst1: gi.require_version() GstPbutils before importing it 2016-02-01 13:05:52 +01:00
Stein Magnus Jodal
3cf8cdb3d9 travis: Add gstreamer1.0-plugins-bad to deps 2016-01-31 21:51:51 +01:00
Thomas Adamcik
190abc3513 gst1: Use default queue settings
Removing this queue seems to break appsrc about to finish.
2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
df6db63dd4 gst1: Remove clearified TODO 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
e68c4668fe audio: Fallback to datetime tag if no date tag 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
9657004b77 audio: Move date tag from Track to Album
The Track model doesn't have a date attribute.
2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
f877ac0807 audio: Add support for GLib.Date tag values 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
0fa78b8e39 gst1: Fix datetime tag conversion 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
df62997186 audio: Decode tags to unicode 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
8b543bad44 local: URIs should be unicode
Any non-ASCII content is uriencoded anyway.
2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
9fde0bec55 audio, timer: Fix trace log stmt 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
31c894030d audio: Move tag helpers to mopidy.audio.tags 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
f0c7d25db6 audio: Reduce log level for unknown tag data 2016-01-31 21:07:17 +01:00
Thomas Adamcik
ded059b5c9 audio: Cleanup the signals we connect in the scanner
Without this fix we simply crash due to using up all the available FDs on the
system.
2016-01-31 21:07:17 +01:00
Thomas Adamcik
b3aeb9b508 audio: Move signal helper to utils. 2016-01-31 21:07:17 +01:00
Thomas Adamcik
844dc257df audio: Don't bother creating decoders in audio scanner
The decoders don't produce metadata and to the best of my knowledge we don't
need the raw audio for duration calculation. But to play it safe this keeps
in place the caps check in pad added to trigger 'have-audio'.
2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
bf6e97e5b9 gst1: Fix querying of duration of MP3s 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
7926ef1f12 gst1: Fail if trying to create buffers without audio
Which causes lots of failed assertion messages from GStreamer
2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
ef5281488b gst1: Fix buffer.pts not being set if 0 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
45dae06347 gst1: Keep the pending URI for the stream_changed event 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
efbfb39e86 docs: Update changelog 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
dd466ed895 docs: Update GStreamer install docs 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
0ef3da5ed3 travis: Replace GStreamer 0.10 with 1.x 2016-01-31 21:07:17 +01:00
Stein Magnus Jodal
780c493af3 gst1: Replace Structure(...) with Stricture.new_empty(...) 2016-01-31 21:07:16 +01:00
Stein Magnus Jodal
7a3d5ff13c gst1: Replace event_new_tag() with Event.new_tag() 2016-01-31 21:07:16 +01:00
Stein Magnus Jodal
226c937ffc gst1: Tune log messages 2016-01-31 21:07:16 +01:00
Stein Magnus Jodal
812e53b895 gst1: Replace parse_new_segment() with parse_segment()
Fixes 4 unit tests
2016-01-31 21:07:16 +01:00
Stein Magnus Jodal
eb4c742015 gst1: Run gst.init() if needed everywhere using Gst 2016-01-31 21:07:16 +01:00
Stein Magnus Jodal
592f5dec53 gst1: Remove deprecated GObject.threads_init()
Ref https://wiki.gnome.org/Projects/PyGObject/Threading

"The requirement to call GObject.threads_init() has been removed from
PyGObject 3.10.2 when using Python native threads with GI (via the
threading module) as well as with GI repositories which manage their own
threads that may call back into Python (like GStreamer callbacks). The
GObject.threads_init() function will still exist for the entire 3.x
series for compatibility reasons but emits a deprecation warning."
2016-01-31 21:07:16 +01:00
Stein Magnus Jodal
ce198ba9f8 gst1: Update pad probe callback to match new signature 2016-01-31 21:07:16 +01:00