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 727754 - Enhancements to porting guide documentation
Enhancements to porting guide documentation
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: documentation
git master
Other All
: Normal enhancement
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-07 14:27 UTC by Xavi Artigas
Modified: 2014-04-28 09:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Porting guide update (1.30 KB, patch)
2014-04-07 14:27 UTC, Xavi Artigas
reviewed Details | Review
Enhancements to porting guide documentation (1.72 KB, patch)
2014-04-28 08:17 UTC, Xavi Artigas
committed Details | Review

Description Xavi Artigas 2014-04-07 14:27:08 UTC
Created attachment 273716 [details] [review]
Porting guide update

A few tidbits of documentation which might be useful for fellow coders porting to GStreamer 1.0
Comment 1 Luis de Bethencourt 2014-04-25 19:02:17 UTC
Looks good to me. Helpful additions to the docs.

Should we push?
Comment 2 Tim-Philipp Müller 2014-04-25 22:25:14 UTC
Comment on attachment 273716 [details] [review]
Porting guide update

> docs/random/porting-to-1.0.txt |    9 +++++++++
> 1 file changed, 9 insertions(+)

Please provide a patch in 'git format-patch' format, so that we can just apply it with 'git am' and it already contains author info and a commit message.

>diff --git a/docs/random/porting-to-1.0.txt b/docs/random/porting-to-1.0.txt
>index 341d9f9..3e83119 100644
>--- a/docs/random/porting-to-1.0.txt
>+++ b/docs/random/porting-to-1.0.txt
>@@ -716,6 +716,9 @@ CHANGES
>         garbled). Since 1.0.7 the "iradio-mode" property has been re-added
>         to allow users to switch off the default behaviour of requesting
>         icecast metadata.
>+      - fakesink's "silent" property default value changed from FALSE to TRUE.
>+        This means that "gst-launch-1.0 -v" will not show messages from
>+        fakesink unless you explicitly request them with "fakesink silent=0".

 - same is also true for the identity element (and, less importantly, also fakesrc).

 - the explicit request should be via silent=false, it's a boolean not an integer (although =0 will work too).

 - should also mention why it was changed (for efficiency reasons)

  
>@@ -739,6 +742,12 @@ CHANGES
> 
>           playbin uri=file:///path/to/foo.flac audio-sink=pulsesink
> 
>+ * non-time-based sources do not provide timestamps anymore
>+
>+      - Sources based on BYTEs instead of TIME (like filesrc or souphttpsrc)
>+        do not provide PTS anymore. In the 0.10 API they provided a PTS with
>+        value 0 for the first buffer. This was needed for legacy operation but
>+        has been removed in the 1.0 API.

This is not wrong, but also a bit misleading. Sources that output stuff in BYTE format will usually still put a DTS=0 on the first buffer even if PTS is unset.
Comment 3 Xavi Artigas 2014-04-28 08:17:17 UTC
Created attachment 275301 [details] [review]
Enhancements to porting guide documentation
Comment 4 Tim-Philipp Müller 2014-04-28 09:49:01 UTC
Pushed, thanks:

 commit 3b617f1fb22fd5d6bc14e79a2925ad149d2e350c
 Author: Xavi Artigas <xartigas@fluendo.com>
 Date:   Mon Apr 28 10:14:50 2014 +0200

    docs: enhancements to porting guide documentation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727754

Although I'm still a bit confused about the bit with the sources, because nothing has changed there really in principle, it's just that it only sets DTS to 0 and not PTS and in 0.10 there was no such distinction. But I guess it's good to mention, you seem to have run into that somewhere.
Comment 5 Xavi Artigas 2014-04-28 09:55:14 UTC
Yes, I had a plugin relying on that 0 PTS in the absence of any other time marker, and it disappeared in 1.0. It's no big deal, but yeah, I too think it is good to mention.

Thanks for the review!