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 797139 - remove crumbs of library outside of gstreamer
remove crumbs of library outside of gstreamer
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer-vaapi
unspecified
Other All
: Normal normal
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-09-13 18:21 UTC by Víctor Manuel Jáquez Leal
Modified: 2018-09-25 17:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libs: remove dependency on IN_LIBGSTVAAPI_CORE (17.73 KB, patch)
2018-09-13 18:21 UTC, Víctor Manuel Jáquez Leal
none Details | Review
libs: videopool: remove unneeded code (4.53 KB, patch)
2018-09-13 18:21 UTC, Víctor Manuel Jáquez Leal
none Details | Review
libs: parser_frame: change macros for inlined functions (1.79 KB, patch)
2018-09-13 18:21 UTC, Víctor Manuel Jáquez Leal
none Details | Review
libs: object: separation of internal API and plugins (3.57 KB, patch)
2018-09-13 18:21 UTC, Víctor Manuel Jáquez Leal
none Details | Review
libs: remove dependency on IN_LIBGSTVAAPI_CORE (20.86 KB, patch)
2018-09-14 16:43 UTC, Víctor Manuel Jáquez Leal
committed Details | Review
libs: videopool: remove unneeded code (4.59 KB, patch)
2018-09-14 16:43 UTC, Víctor Manuel Jáquez Leal
committed Details | Review
libs: parser_frame: change macros for inlined functions (1.79 KB, patch)
2018-09-14 16:43 UTC, Víctor Manuel Jáquez Leal
committed Details | Review
libs: object: separation of internal API and plugins (3.57 KB, patch)
2018-09-14 16:43 UTC, Víctor Manuel Jáquez Leal
committed Details | Review

Description Víctor Manuel Jáquez Leal 2018-09-13 18:21:12 UTC
Since gstreamer-vaapi was merged into gstreamer project, the library was no
longer "independent" of GStreamer. 

Still there are some crumbs of that, for example the usage of 
IN_LIBGSTVAAPI_CORE macro which makes not much sense nowadays, and, in my
opinion, makes the code harder to follow.

The following patches remove that macro usage.
Comment 1 Víctor Manuel Jáquez Leal 2018-09-13 18:21:19 UTC
Created attachment 373642 [details] [review]
libs: remove dependency on IN_LIBGSTVAAPI_CORE

This conditional code was when libgstvaapi was intended to be library
used outside GStreamer. This not the case anymore, thus removing it.
Comment 2 Víctor Manuel Jáquez Leal 2018-09-13 18:21:24 UTC
Created attachment 373643 [details] [review]
libs: videopool: remove unneeded code

The removed code comes frome the bad practice of copy&paste. Better
move it as internal function.
Comment 3 Víctor Manuel Jáquez Leal 2018-09-13 18:21:28 UTC
Created attachment 373644 [details] [review]
libs: parser_frame: change macros for inlined functions
Comment 4 Víctor Manuel Jáquez Leal 2018-09-13 18:21:34 UTC
Created attachment 373645 [details] [review]
libs: object: separation of internal API and plugins

Removed exposed macros GST_VAAPI_OBJECT_DISPLAY() and
GST_VAAPI_OBJECT_ID() to plugins, keeping them only for internal
library usage.

The purpose is readability.
Comment 5 Víctor Manuel Jáquez Leal 2018-09-14 16:43:38 UTC
Created attachment 373657 [details] [review]
libs: remove dependency on IN_LIBGSTVAAPI_CORE

This conditional code was when libgstvaapi was intended to be library
used outside GStreamer. This not the case anymore, thus removing it.
Comment 6 Víctor Manuel Jáquez Leal 2018-09-14 16:43:45 UTC
Created attachment 373658 [details] [review]
libs: videopool: remove unneeded code

The removed code comes frome the bad practice of copy&paste. Better
move it as internal function.
Comment 7 Víctor Manuel Jáquez Leal 2018-09-14 16:43:51 UTC
Created attachment 373659 [details] [review]
libs: parser_frame: change macros for inlined functions
Comment 8 Víctor Manuel Jáquez Leal 2018-09-14 16:43:57 UTC
Created attachment 373660 [details] [review]
libs: object: separation of internal API and plugins

Removed exposed macros GST_VAAPI_OBJECT_DISPLAY() and
GST_VAAPI_OBJECT_ID() to plugins, keeping them only for internal
library usage.

The purpose is readability.
Comment 9 Víctor Manuel Jáquez Leal 2018-09-25 16:04:54 UTC
Attachment 373657 [details] pushed as 4505acc - libs: remove dependency on IN_LIBGSTVAAPI_CORE
Attachment 373658 [details] pushed as 0e16691 - libs: videopool: remove unneeded code
Attachment 373659 [details] pushed as 9970e15 - libs: parser_frame: change macros for inlined functions
Attachment 373660 [details] pushed as 0152410 - libs: object: separation of internal API and plugins