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 754457 - segment: Rewording of struct field descriptions
segment: Rewording of struct field descriptions
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: 1.7.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-02 13:38 UTC by Vivia Nikolaidou
Modified: 2015-09-25 22:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch file (1.77 KB, patch)
2015-09-02 13:38 UTC, Vivia Nikolaidou
none Details | Review
Updated patch file (2.90 KB, patch)
2015-09-02 15:36 UTC, Vivia Nikolaidou
none Details | Review
Re-updated patch file (2.93 KB, patch)
2015-09-02 16:05 UTC, Vivia Nikolaidou
committed Details | Review

Description Vivia Nikolaidou 2015-09-02 13:38:35 UTC
Created attachment 310499 [details] [review]
Patch file

The new wording makes it easier to understand exactly what each field of the GstSegment struct represents.
Comment 1 Tim-Philipp Müller 2015-09-02 13:56:19 UTC
Comment on attachment 310499 [details] [review]
Patch file

Some nitpicking

>- * @rate: the rate of the segment
>+ * @rate: the desired playback rate of the segment

It is the rate, not the "desired" rate. The desired rate is what you pass to gst_event_new_seek().

>- * @applied_rate: the already applied rate to the segment
>+ * @applied_rate: the already applied rate to the stream

Why? It's not constant for the entire stream, but might change, no?



>- * @start: the start of the segment
>+ * @start: the start buffer timestamp of the segment
>- * @stop: the stop of the segment
>+ * @stop: the stop buffer timestamp of the segment

I think these might add more confusion actually, people might interpret it as the timestamp of the first buffer, but the timestamp of the first buffer may be before the start.
Comment 2 Vivia Nikolaidou 2015-09-02 14:03:58 UTC
(In reply to Tim-Philipp Müller from comment #1)
> Comment on attachment 310499 [details] [review] [review]
> Patch file
> 
> Some nitpicking
> 
> >- * @rate: the rate of the segment
> >+ * @rate: the desired playback rate of the segment
> 
> It is the rate, not the "desired" rate. The desired rate is what you pass to
> gst_event_new_seek().
> 
> >- * @applied_rate: the already applied rate to the segment
> >+ * @applied_rate: the already applied rate to the stream
> 
> Why? It's not constant for the entire stream, but might change, no?

I actually copied these two from gstreamer/docs/design/part-synchronisation.txt . The two files should become consistent, in that case.

> >- * @start: the start of the segment
> >+ * @start: the start buffer timestamp of the segment
> >- * @stop: the stop of the segment
> >+ * @stop: the stop buffer timestamp of the segment
> 
> I think these might add more confusion actually, people might interpret it
> as the timestamp of the first buffer, but the timestamp of the first buffer
> may be before the start.

Pasting your suggestion from our private discussion:
perhaps "the start of the segment in buffer timestamp time (pts)"

Sounds good to me, I like it :)
Comment 3 Sebastian Dröge (slomo) 2015-09-02 15:12:40 UTC
What Tim suggests makes sense, should also update the design doc accordingly.
Comment 4 Vivia Nikolaidou 2015-09-02 15:36:36 UTC
Created attachment 310516 [details] [review]
Updated patch file

Also updated the design docs accordingly.
Comment 5 Vivia Nikolaidou 2015-09-02 16:05:35 UTC
Created attachment 310526 [details] [review]
Re-updated patch file

Minor rewording in base: need to take into account the offset here.
Comment 6 Vivia Nikolaidou 2015-09-09 14:12:11 UTC
Does this look OK now, enough to get in? Or is there something more to be done?
Comment 7 Sebastian Dröge (slomo) 2015-09-25 22:23:47 UTC
commit 60130eb5f030358c6068ae5a84d94613d3b723d2
Author: Vivia Nikolaidou <vivia@ahiru.eu>
Date:   Wed Sep 2 16:36:35 2015 +0300

    segment: Rewording of struct field descriptions
    
    The new wording makes it easier to understand exactly what each field of the
    GstSegment struct represents.