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 766470 - Add gst_print(), gst_println(), gst_printerr(), gst_printerrln(), etc
Add gst_print(), gst_println(), gst_printerr(), gst_printerrln(), etc
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-05-15 11:31 UTC by Sebastian Dröge (slomo)
Modified: 2016-11-12 10:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gst: add gst_print(), gst_println(), gst_printerr(), gst_printerrln() (6.61 KB, patch)
2016-11-11 16:14 UTC, Tim-Philipp Müller
committed Details | Review

Description Sebastian Dröge (slomo) 2016-05-15 11:31:56 UTC
... which use our printf stuff and can thus use GST_PTR_FORMAT.
Comment 1 Tim-Philipp Müller 2016-05-15 11:41:30 UTC
I suggested gst_print() + gst_printerr() a while back as well, I think those would be useful.

I don't know about gst_println()/printerrln(), seems a bit over the top, it's a minor inconvenience, no? What's the point here? So you can easily convert to GST_LOG statements?
Comment 2 Sebastian Dröge (slomo) 2016-05-15 12:10:56 UTC
Convenience and it's easy enough to add :) Also most other languages and libraries have a print and println/print_line function, simply because you usually always want to print with a "\n" at the end.
Comment 3 Tim-Philipp Müller 2016-11-11 16:14:05 UTC
Created attachment 339633 [details] [review]
gst: add gst_print(), gst_println(), gst_printerr(), gst_printerrln()
Comment 4 Tim-Philipp Müller 2016-11-12 10:56:46 UTC
commit 66d2bae604cc2e605a3b96f1bca95837df2c3411
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Fri Nov 11 16:11:15 2016 +0000

    Add gst_print(), gst_println(), gst_printerr(), gst_printerrln()
    
    Useful for debugging.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766470