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 784279 - Export enum GstPlayFlags
Export enum GstPlayFlags
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-28 10:12 UTC by Victor Toso
Modified: 2017-06-28 10:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Victor Toso 2017-06-28 10:12:27 UTC
Any reason not to export it? If I want to tweak playbin's flags I usually have to define this enum in the client code.

typedef enum {                                                                                                                                                                                                       
  GST_PLAY_FLAG_VIDEO             = (1 << 0), 
  GST_PLAY_FLAG_AUDIO             = (1 << 1), 
  GST_PLAY_FLAG_TEXT              = (1 << 2), 
  GST_PLAY_FLAG_VIS               = (1 << 3), 
  GST_PLAY_FLAG_SOFT_VOLUME       = (1 << 4), 
  GST_PLAY_FLAG_NATIVE_AUDIO      = (1 << 5), 
  GST_PLAY_FLAG_NATIVE_VIDEO      = (1 << 6), 
  GST_PLAY_FLAG_DOWNLOAD          = (1 << 7), 
  GST_PLAY_FLAG_BUFFERING         = (1 << 8), 
  GST_PLAY_FLAG_DEINTERLACE       = (1 << 9), 
  GST_PLAY_FLAG_SOFT_COLORBALANCE = (1 << 10),
  GST_PLAY_FLAG_FORCE_FILTERS     = (1 << 11),
} GstPlayFlags;
Comment 1 Tim-Philipp Müller 2017-06-28 10:37:12 UTC
Thanks for the bug report, but we don't export plugin headers, sorry.

You can copy and paste these into your code, or use API like gst_util_set_object_arg() so you can use string nicks.

You can also use higher-level API such as GstPlayer which has full headers :)