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 651533 - gstomx.conf.in: Invalid serialized GstStructure strings for multi-structure caps of omx_mpeg4dec
gstomx.conf.in: Invalid serialized GstStructure strings for multi-structure c...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-omx
git master
Other Linux
: Normal normal
: 0.10.2
Assigned To: Felipe Contreras (banned)
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-31 10:04 UTC by Sebastian Dröge (slomo)
Modified: 2011-10-29 15:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gstomx.conf: Fix multi-structure sink caps of omx_mpeg4dec (1.11 KB, patch)
2011-05-31 10:05 UTC, Sebastian Dröge (slomo)
rejected Details | Review

Description Sebastian Dröge (slomo) 2011-05-31 10:04:39 UTC
Hi,
see attached patch. gst_structure_from_string() does not like the multi-line strings
Comment 1 Sebastian Dröge (slomo) 2011-05-31 10:05:02 UTC
Created attachment 188916 [details] [review]
gstomx.conf: Fix multi-structure sink caps of omx_mpeg4dec
Comment 2 Felipe Contreras (banned) 2011-05-31 10:30:59 UTC
(In reply to comment #1)
> Created an attachment (id=188916) [details] [review]
> gstomx.conf: Fix multi-structure sink caps of omx_mpeg4dec

Wouldn't it be better to just have a sed or perl script to fix that automatically?
Comment 3 Sebastian Dröge (slomo) 2011-05-31 10:38:31 UTC
I don't know, do you have any advantage by having the multi-line caps in the conf.in but not in the conf?
Comment 4 Felipe Contreras (banned) 2011-05-31 10:39:37 UTC
(In reply to comment #3)
> I don't know, do you have any advantage by having the multi-line caps in the
> conf.in but not in the conf?

Easier to read and maintain.
Comment 5 Sebastian Dröge (slomo) 2011-05-31 10:58:37 UTC
Ok, are you going to do that? My sed/perl skills are not good enough to automatically convert the multi-line strings into a single line without spending a lot of time with learning perl
Comment 6 Felipe Contreras (banned) 2011-05-31 20:33:07 UTC
(In reply to comment #5)
> Ok, are you going to do that? My sed/perl skills are not good enough to
> automatically convert the multi-line strings into a single line without
> spending a lot of time with learning perl

I was hoping you would do that.

But anyway, this does it:

-       cat $^ | $(CPP) $(CFLAGS) $(libgstomx_la_CFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) - | grep -v "^#" | sed 's/\"\ *\"//g' >> $@
+       cat $^ | $(CPP) -P $(CFLAGS) $(libgstomx_la_CFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) - | sed 's/\"\ *\"//g' >> $@
Comment 7 Sebastian Dröge (slomo) 2011-06-01 06:39:54 UTC
No, this doesn't change anything for me
Comment 8 Sebastian Dröge (slomo) 2011-06-03 08:37:51 UTC
Actually it works, automake didn't regenerate Makefile{,.in} and I didn't notice. Please commit that change and my to other, somewhat related and trivial, changes from

http://cgit.collabora.com/git/user/slomo/gst-openmax.git/log/?h=pending

The commit messages explain the reasons for them, if there are still questions please ask.
Comment 9 Felipe Contreras (banned) 2011-07-15 12:06:27 UTC
Sorry for the delay.

I've pushed all your changes with a few cleanups.