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 701706 - gst-omx testegl.c example not compatible with gstreamer 1.x
gst-omx testegl.c example not compatible with gstreamer 1.x
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-omx
git master
Other Linux
: Normal enhancement
: 1.2.0
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-06-06 10:50 UTC by Ilya Smelykh
Modified: 2014-07-23 08:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testegl.c patch for 1.x support (38.18 KB, patch)
2013-06-06 10:51 UTC, Ilya Smelykh
none Details | Review
patch for correct library name (385 bytes, patch)
2013-06-06 10:51 UTC, Ilya Smelykh
none Details | Review
patch for new working mode of testegl example (901.18 KB, patch)
2013-06-06 10:53 UTC, Ilya Smelykh
none Details | Review
format patch (941.88 KB, patch)
2013-06-06 11:54 UTC, Ilya Smelykh
none Details | Review
testegl.c patch for 1.x support (39.88 KB, patch)
2013-06-06 12:36 UTC, Ilya Smelykh
needs-work Details | Review
examples/egl/Makefile.am file patch for linking (716 bytes, patch)
2013-06-06 12:38 UTC, Ilya Smelykh
needs-work Details | Review
testegl header file patch for new mode (901.15 KB, patch)
2013-06-06 12:39 UTC, Ilya Smelykh
needs-work Details | Review
patch for enabling examples building by default (605 bytes, patch)
2013-06-06 12:40 UTC, Ilya Smelykh
accepted-commit_now Details | Review
examples/egl/Makefile.am file patch for linking (751 bytes, patch)
2013-06-07 05:42 UTC, Ilya Smelykh
none Details | Review
testegl.c patch for 1.x support (27.02 KB, patch)
2013-06-07 05:47 UTC, Ilya Smelykh
needs-work Details | Review
testegl.c patch for 1.x support (27.50 KB, patch)
2013-06-10 13:18 UTC, Ilya Smelykh
committed Details | Review

Description Ilya Smelykh 2013-06-06 10:50:13 UTC
testegl.c example in git master currently not compatible with git master gstreamer.
Comment 1 Ilya Smelykh 2013-06-06 10:51:00 UTC
Created attachment 246137 [details] [review]
testegl.c patch for 1.x support
Comment 2 Ilya Smelykh 2013-06-06 10:51:39 UTC
Created attachment 246138 [details] [review]
patch for correct library name
Comment 3 Ilya Smelykh 2013-06-06 10:53:12 UTC
Created attachment 246139 [details] [review]
patch for new working mode of testegl example
Comment 4 Ilya Smelykh 2013-06-06 11:54:42 UTC
Created attachment 246148 [details] [review]
format patch
Comment 5 Ilya Smelykh 2013-06-06 12:36:37 UTC
Created attachment 246154 [details] [review]
testegl.c patch for 1.x support
Comment 6 Ilya Smelykh 2013-06-06 12:38:20 UTC
Created attachment 246155 [details] [review]
examples/egl/Makefile.am file patch for linking
Comment 7 Ilya Smelykh 2013-06-06 12:39:28 UTC
Created attachment 246156 [details] [review]
testegl header file patch for new mode
Comment 8 Ilya Smelykh 2013-06-06 12:40:31 UTC
Created attachment 246157 [details] [review]
patch for enabling examples building by default
Comment 9 Sebastian Dröge (slomo) 2013-06-06 12:48:56 UTC
Review of attachment 246155 [details] [review]:

::: examples/egl/Makefile.am
@@ +7,3 @@
 testegl_LDADD = \
 	$(GST_PLUGINS_BASE_LIBS) \
+  -lgstapp-1.0 -lgstvideo-1.0 \

Should be @GST_API_VERSION@
Comment 10 Sebastian Dröge (slomo) 2013-06-06 12:51:15 UTC
Review of attachment 246154 [details] [review]:

This patch seems to include many unrelated changes to porting. Please clean that up, afterwards I'll do a real review :)

::: examples/egl/testegl.c
@@ +137,3 @@
+  OMX_EGL_EXAMPLE_VIDEO_CUBE,
+  OMX_EGL_EXAMPLE_VIDEO_BACKGROUND,
+  /* .. */

Like this

@@ +250,3 @@
  *
  ***********************************************************/
+     static void init_ogl (APP_STATE_T * state)

Indention broken

@@ +1022,2 @@
+      g_mutex_lock (state->lock);
+      GST_DEBUG ("\neglglessink-allocate-eglimage %p ", query);

No \n here, and use GST_PTR_FORMAT to let it print the query
Comment 11 Sebastian Dröge (slomo) 2013-06-06 12:52:12 UTC
Review of attachment 246156 [details] [review]:

Please put all function changes in a single commit. Every commit should be compileable and useable, so include this here in the commit that adds the new mode
Comment 12 Ilya Smelykh 2013-06-07 05:42:34 UTC
Created attachment 246226 [details] [review]
examples/egl/Makefile.am file patch for linking

 Hardcoded api version replaced by @GST_API_VERSION@.
Comment 13 Ilya Smelykh 2013-06-07 05:47:49 UTC
Created attachment 246227 [details] [review]
testegl.c patch for 1.x support
Comment 14 Sebastian Dröge (slomo) 2013-06-07 10:18:52 UTC
Review of attachment 246227 [details] [review]:

Just one minor comment, and you should squash that together with the Makefile.am patch and only keep the new mode as a separate patch. otherwise looks good

::: examples/egl/testegl.c
@@ +4,3 @@
 Copyright (C) 2013, Fluendo S.A.
    @author: Josep Torra <josep@fluendo.com>
+   @author: Ilya Smelykh <ilya@videoexpertsgroup.com>

You might want to add a new Copyright line here as I assume you're not working for Fluendo ;)
Comment 15 Ilya Smelykh 2013-06-10 13:18:36 UTC
Created attachment 246402 [details] [review]
testegl.c patch for 1.x support
Comment 16 Sebastian Dröge (slomo) 2013-06-11 11:50:50 UTC
commit 4593918ea46d55c6fb97e98fbe362bbe3c261d66
Author: Ilya Smelykh <ilya@videoexpertsgroup.com>
Date:   Fri Jun 7 12:39:18 2013 +0700

    examples: testegl example port to 1.x
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701706