~ubuntu-branches/ubuntu/karmic/quodlibet/karmic

« back to all changes in this revision

Viewing changes to quodlibet/player/gstbe.py

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-07-27 14:02:54 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20090727140254-zxutnf2kkhtpubnp
Tags: 2.1-2ubuntu1
* Resync from debian unstable (LP: #401965)
* debian/patches:
  - fix-context-crashes.patch: Dropped. Included Upstream.
  - 60-popen2-deprecated.patch: Dropped. Included Upstream.
* debian/quodlibet-ext.install: Changed 'site-packages' to '*-packages'.
* debian/rules: Changed 'site-packages' to '*-packages'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# it under the terms of the GNU General Public License version 2 as
5
5
# published by the Free Software Foundation
6
6
#
7
 
# $Id: gstbe.py 4330 2008-09-14 03:19:26Z piman $
 
7
# $Id: gstbe.py e8210497a0bb 2009/06/22 05:20:40 $
8
8
 
9
9
import gobject
10
10
 
26
26
    * If it fails, fall back to autoaudiosink.
27
27
    * If that fails, complain loudly."""
28
28
 
29
 
    if pipeline == "gconf": pipeline = "gconfaudiosink"
 
29
    if pipeline == "gconf": pipeline = "gconfaudiosink profile=music"
30
30
    try: pipe = gst.parse_launch(pipeline)
31
31
    except gobject.GError, err:
32
32
        if pipeline != "autoaudiosink":
223
223
    return gst.element_make_from_uri(gst.URI_SRC, uri, '') is not None
224
224
 
225
225
def init(librarian):
226
 
    pipeline = config.get("player", "gst_pipeline") or "gconfaudiosink"
 
226
    pipeline = (config.get("player", "gst_pipeline") or
 
227
                "gconfaudiosink profile = music")
227
228
    gst.debug_set_default_threshold(gst.LEVEL_ERROR)
228
229
    if gst.element_make_from_uri(
229
230
        gst.URI_SRC,