After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 599105 - [baseaudiosink] Remove pulsesink < 0.10.17 hack after gst-plugins-good release
[baseaudiosink] Remove pulsesink < 0.10.17 hack after gst-plugins-good release
Status: RESOLVED NOTGNOME
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other Linux
: Normal blocker
: 0.10.26
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 599107 599150 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-10-20 20:10 UTC by Sebastien Bacher
Modified: 2009-10-29 06:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GST_DEBUG=3 debug log (36.00 KB, application/x-gzip)
2009-10-20 20:20 UTC, Sebastien Bacher
  Details
01_baseaudiosink-remove-pulsesink-hack.patch (1.22 KB, patch)
2009-10-21 18:03 UTC, Sebastian Dröge (slomo)
none Details | Review

Description Sebastien Bacher 2009-10-20 20:10:16 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/gstreamer0.10/+bug/456016

"1) Open video
2) Play it, finish watching it
3) Hit play again
4) No audio, just video

1) Open video
2) Finish watching 1, go to next item in playlist
3) Video plays, no audio

libgstreamer0.10-0 0.10.25-2"


The bug happens on current karmic
Comment 1 Sebastien Bacher 2009-10-20 20:20:38 UTC
Created attachment 145894 [details]
GST_DEBUG=3 debug log
Comment 2 Sebastien Bacher 2009-10-20 20:21:54 UTC
Confirming the issue there on karmic, the second video seems to start playing sound with a delay of some seconds and the audio and video stayed desynchonized with that delay
Comment 3 Colin Guthrie 2009-10-21 09:04:35 UTC
I've found that commit 42ee5e22 (removal of the ringbuffer compensation code) breaks the pulse output plugin. in gst-plugins-good.

I'm using the latest released version of gstreamer/-base (0.10.25) so the companion commit for adding the ringbuffer code to the baseaudiosink is there, but it's not helping.

The symptoms are:
Fist track in totem will play fine, and allow seeking happily. If you skip (or it advances naturally) there is a massive delay before it starts playing (if at all), when it is playing if you try and seek, you get the massive delay again (and you cannot hear the blip-de-blip-de-blip of fast forwarded audio as you did on the first track.

Reverting this commit solves the problem.

I'm not sure if this is the same problem you're getting in Karmic tho', because it does not say whether the pulse plugin has had some of the upstream commits backported into the official package.

Certainly when I looked and tested the upstream commits when pulling in some changes for Mandriva, this commit stood out as being a problem as soon as I tested it.

Hope this helps.
Comment 4 Sebastian Dröge (slomo) 2009-10-21 18:03:50 UTC
Created attachment 145967 [details] [review]
01_baseaudiosink-remove-pulsesink-hack.patch

Most probably this will be fixed by this patch. Problem was, that the code that was removed by the above mentioned commit will only be enabled in baseaudiosink if a new enough pulsesink is found and disabled for older versions. Thus backporting the pulsesink changes without adjusting baseaudiosink will break.

Please someone confirm this, I can't reproduce the problem anymore but I couldn't reproduce it reliable before neither.
Comment 5 Sebastian Dröge (slomo) 2009-10-21 18:08:10 UTC
*** Bug 599150 has been marked as a duplicate of this bug. ***
Comment 6 Sebastien Bacher 2009-10-21 20:58:12 UTC
confirming the fix solves the issue described there and dvd playing issues
Comment 7 Jan Schmidt 2009-10-21 21:03:28 UTC
*** Bug 599107 has been marked as a duplicate of this bug. ***
Comment 8 Sebastian Dröge (slomo) 2009-10-22 05:18:14 UTC
Great, then this is not really a bug ;)

But let's move this to gst-plugins-base and mark it as blocker for 0.10.26 to make sure that the pulsesink hack gets removed after gst-plugins-good 0.10.17 was released.
Comment 9 Tim-Philipp Müller 2009-10-22 12:54:41 UTC
> But let's move this to gst-plugins-base and mark it as blocker for 0.10.26 to
> make sure that the pulsesink hack gets removed after gst-plugins-good 0.10.17
> was released.

I'm not sure if we can really do this. Shouldn't it be possible to drop in a core/base 0.10.26/27/28 with an older gst-plugins-good?

Also, in retrospect I think maybe we should have worked around this differently, by making pulsesink use g_object_set_user_data(pulsesink, "skip-timestamp-offsetting", GINT_TO_POINTER(1)) or something like that, but I guess there's not much reason to change that now.
Comment 10 Jan Schmidt 2009-10-22 13:47:07 UTC
(In reply to comment #9)
> > But let's move this to gst-plugins-base and mark it as blocker for 0.10.26 to
> > make sure that the pulsesink hack gets removed after gst-plugins-good 0.10.17
> > was released.
> 
> I'm not sure if we can really do this. Shouldn't it be possible to drop in a
> core/base 0.10.26/27/28 with an older gst-plugins-good?

Yes - the intention was that the 'hack' would stick around until 1.0.
 
> Also, in retrospect I think maybe we should have worked around this
> differently, by making pulsesink use g_object_set_user_data(pulsesink,
> "skip-timestamp-offsetting", GINT_TO_POINTER(1)) or something like that, but I
> guess there's not much reason to change that now.

You're right - that's a nicer way to handle this stuff in the future.
Comment 11 Tim-Philipp Müller 2009-10-27 01:14:46 UTC
So can we close this as OBSOLETE then?
Comment 12 Bastien Nocera 2009-10-27 01:20:53 UTC
*** Bug 599670 has been marked as a duplicate of this bug. ***
Comment 13 Bastien Nocera 2009-10-27 01:22:08 UTC
If distros could get some warning about work-arounds like that in the future, it would be appreciated.
Comment 14 Sebastian Dröge (slomo) 2009-10-27 06:57:04 UTC
(In reply to comment #11)
> So can we close this as OBSOLETE then?

Well, I would say NOTGNOME in this case. On our side everything is good, distros backported patches that broke something. (And yes, this stuff should really be in the release notes in the future)
Comment 15 Sebastian Dröge (slomo) 2009-10-29 06:24:04 UTC
*** Bug 599474 has been marked as a duplicate of this bug. ***