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 796603 - pitch: various improvements for use in GES
pitch: various improvements for use in GES
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-06-16 16:25 UTC by Mathieu Duponchelle
Modified: 2018-06-16 16:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
pitch: Fix single input buffer followed by EOS (1.04 KB, patch)
2018-06-16 16:25 UTC, Mathieu Duponchelle
committed Details | Review
pitch: fix latency reporting (1.07 KB, patch)
2018-06-16 16:25 UTC, Mathieu Duponchelle
committed Details | Review
pitch: preserve seek event seqnums (1.57 KB, patch)
2018-06-16 16:25 UTC, Mathieu Duponchelle
committed Details | Review

Description Mathieu Duponchelle 2018-06-16 16:25:27 UTC
See commit messages
Comment 1 Mathieu Duponchelle 2018-06-16 16:25:34 UTC
Created attachment 372695 [details] [review]
pitch: Fix single input buffer followed by EOS

The flush function immediately returned when pitch->next_buffer_offset
was 0.

This is clearly wrong, as next_buffer_offset can be 0 when a single
input buffer has been received, and no output buffer has been produced
before receiving EOS.

Simply remove that condition.
Comment 2 Mathieu Duponchelle 2018-06-16 16:25:40 UTC
Created attachment 372696 [details] [review]
pitch: fix latency reporting

When max is GST_CLOCK_TIME_NONE in the query, it should not
be set in the query handler, this otherwise could lead to
impossible situations, where the minimum latency ended up
greater than the maximum.
Comment 3 Mathieu Duponchelle 2018-06-16 16:25:48 UTC
Created attachment 372697 [details] [review]
pitch: preserve seek event seqnums

This was wreaking havoc when used with a downstream audiomixer.
Comment 4 Thibault Saunier 2018-06-16 16:30:29 UTC
Review of attachment 372696 [details] [review]:

OK, just keep previous max latency if we do not have a value for it, lgtm
Comment 5 Thibault Saunier 2018-06-16 16:31:10 UTC
Review of attachment 372697 [details] [review]:

lgtm
Comment 6 Thibault Saunier 2018-06-16 16:38:08 UTC
Review of attachment 372695 [details] [review]:

Looking at the code that condition indeed doesn't make sense to me. This patch makes sense to me.
Comment 7 Mathieu Duponchelle 2018-06-16 16:39:09 UTC
Attachment 372695 [details] pushed as 5f020be - pitch: Fix single input buffer followed by EOS
Attachment 372696 [details] pushed as 0b03b47 - pitch: fix latency reporting
Attachment 372697 [details] pushed as 44f0814 - pitch: preserve seek event seqnums