Bug 308751 - gstreamer backend fails to play FLAC after OGG file or vice-versa.
Summary: gstreamer backend fails to play FLAC after OGG file or vice-versa.
Status: RESOLVED UPSTREAM
Alias: None
Product: phonon-backend-gstreamer
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.6
Platform: Debian testing Linux
: NOR normal
Target Milestone: 4.7
Assignee: Harald Sitter
URL: http://bugs.debian.org/690291
Keywords:
: 310609 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-21 12:34 UTC by David Smith
Modified: 2012-11-24 22:13 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
gstreamer throws a critical error when trying to switch tracks. (19.25 KB, text/plain)
2012-10-21 12:35 UTC, David Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Smith 2012-10-21 12:34:57 UTC
This only happens while using the gstreamer phonon backend for Amarok.

If a FLAC file is right after an OGG file in the Amarok playlist, then Amarok stops playing after the OGG file.

If the user double-clicks on the FLAC file, then the file plays just fine.

If a WMA file is right after an OGG file in the Amarok playlist, then Amarok stops playing after the OGG file.

If the user double-clicks on the WMA file, then the file plays just fine.

According to the Amarok Debug (attached).  Gstreamer is throwing a critical error when it tries to switch songs.

"(amarok:21876): GStreamer-CRITICAL **: Failed to deactivate pad asfdemux0:sink, very bad"




Reproducible: Always

Steps to Reproduce:
1. Put an OGG file in the Amarok Playlist
2. Put a FLAC file in the Amarok Playlist
3. Play the OGG file.

Actual Results:  
Amarok plays the OGG file successfully.
Amarok tries to play the FLAC file but GStreamer throws a critical error in the background and stops playback.

Expected Results:  
Amarok plays the OGG file successfully.
Amarok plays the FLAC file successfully.


This also happens when trying to play a WMA file after an OGG file.
Comment 1 David Smith 2012-10-21 12:35:57 UTC
Created attachment 74698 [details]
gstreamer throws a critical error when trying to switch tracks.
Comment 2 David Smith 2012-10-21 12:45:38 UTC
david@Miho:~$ dpkg -l | grep gstreamer
ii  gir1.2-gstreamer-0.10                        0.10.36-1                         i386         Description: GObject introspection data for the GStreamer library
ii  gstreamer0.10-alsa:i386                      0.10.36-1                         i386         GStreamer plugin for ALSA
ii  gstreamer0.10-chromaprint                    0.1-3                             i386         GStreamer plugin for calculating audio fingerprints
ii  gstreamer0.10-gconf:i386                     0.10.31-3                         i386         GStreamer plugin for getting the sink/source information from GConf
ii  gstreamer0.10-nice:i386                      0.1.2-1                           i386         ICE library (GStreamer plugin)
ii  gstreamer0.10-plugins-bad:i386               0.10.23-7                         i386         GStreamer plugins from the "bad" set
ii  gstreamer0.10-plugins-base:i386              0.10.36-1                         i386         GStreamer plugins from the "base" set
ii  gstreamer0.10-plugins-good:i386              0.10.31-3                         i386         GStreamer plugins from the "good" set
ii  gstreamer0.10-plugins-ugly:i386              0.10.19-2+b2                      i386         GStreamer plugins from the "ugly" set
ii  gstreamer0.10-pulseaudio:i386                0.10.31-3                         i386         GStreamer plugin for PulseAudio
ii  gstreamer0.10-x:i386                         0.10.36-1                         i386         GStreamer plugins for X11 and Pango
ii  libgstreamer-plugins-bad0.10-0:i386          0.10.23-7                         i386         GStreamer development files for libraries from the "bad" set
ii  libgstreamer-plugins-base0.10-0:i386         0.10.36-1                         i386         GStreamer libraries from the "base" set
ii  libgstreamer0.10-0:i386                      0.10.36-1                         i386         Core GStreamer libraries and elements
ii  phonon-backend-gstreamer:i386                4:4.6.0.0-2                       i386         Phonon GStreamer 0.10.x backend
Comment 3 David Smith 2012-10-21 13:13:43 UTC
Correction...WMA after OGG does in fact work.

A FLAC doesn't play at all after an OGG
An OGG doesn't play at all after a FLAC
An OGG doesn't play properly after a WMA. (First few seconds of the song is lost)

Thanks.
Comment 4 David Smith 2012-10-21 13:25:48 UTC
In addition to the above comment: 
An OGG file doesn't play at all after an MP3 file.
An MP3 file doesn't play at all after a FLAC file.

Thanks.
Comment 5 David Smith 2012-10-21 13:43:00 UTC
I just downgraded gstreamer on this system as follows:

david@Miho:~$ dpkg -l | grep gstreamer
ii  gir1.2-gstreamer-0.10                        0.10.36-1                         i386         Description: GObject introspection data for the GStreamer library
ii  gstreamer0.10-alsa                           0.10.30-1                         i386         GStreamer plugin for ALSA
ii  gstreamer0.10-chromaprint                    0.1-3                             i386         GStreamer plugin for calculating audio fingerprints
ii  gstreamer0.10-ffmpeg                         0.10.10-1                         i386         FFmpeg plugin for GStreamer
ii  gstreamer0.10-nice:i386                      0.1.2-1                           i386         ICE library (GStreamer plugin)
ii  gstreamer0.10-plugins-bad                    0.10.19-2+b2                      i386         GStreamer plugins from the "bad" set
ii  gstreamer0.10-plugins-base                   0.10.30-1                         i386         GStreamer plugins from the "base" set
ii  gstreamer0.10-plugins-good                   0.10.24-1                         i386         GStreamer plugins from the "good" set
ii  gstreamer0.10-plugins-ugly                   0.10.15-1                         i386         GStreamer plugins from the "ugly" set
ii  gstreamer0.10-pulseaudio:i386                0.10.31-3                         i386         GStreamer plugin for PulseAudio
ii  gstreamer0.10-x                              0.10.30-1                         i386         GStreamer plugins for X11 and Pango
rc  libgstreamer-plugins-bad0.10-0:i386          0.10.23-7                         i386         GStreamer development files for libraries from the "bad" set
ii  libgstreamer-plugins-base0.10-0:i386         0.10.36-1                         i386         GStreamer libraries from the "base" set
ii  libgstreamer0.10-0:i386                      0.10.36-1                         i386         Core GStreamer libraries and elements
ii  phonon-backend-gstreamer:i386                4:4.6.0.0-2                       i386         Phonon GStreamer 0.10.x backend
david@Miho:~$ 


The problem seems to have gone away.  Although now I can't play MP3 files and I'm not sure why.

Is there a way to confirm this all is a gstreamer bug?
Comment 6 Harald Sitter 2012-10-21 14:11:10 UTC
> The problem seems to have gone away.  Although now I can't play MP3 files and I'm not sure why.

I'd say this already confirms it as being a gstreamer bug, no?

Also phonon-backend-gstreamer 4.6.2 is your friend.
Comment 7 Myriam Schweingruber 2012-11-24 22:13:18 UTC
*** Bug 310609 has been marked as a duplicate of this bug. ***