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 613371 - gst_element_class_set_details => gst_element_class_set_details_simple
gst_element_class_set_details => gst_element_class_set_details_simple
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-gl
git master
Other Linux
: Normal normal
: 0.10.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-19 21:45 UTC by Benjamin Otte (Company)
Modified: 2010-03-24 13:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (16.70 KB, patch)
2010-03-19 21:45 UTC, Benjamin Otte (Company)
none Details | Review

Description Benjamin Otte (Company) 2010-03-19 21:45:19 UTC
Created attachment 156591 [details] [review]
patch

The attached patch does that conversion. I want to deprecate gst_element_class_set_details() in core and would like to convert all modules so they keep compiling.
However, I cannot check it in because gst-indent screws up completely here and mangles some files.
Comment 1 Filippo Argiolas 2010-03-20 07:48:42 UTC
Yep, we'll fix it sooner or later...
The indent script is not super perfect anyway, look what it does with the fragment source in gstgldeinterlace.c e.g.
I never managed to completely replicate what it does with emacs... IIRC correctly I even found an indent bug while trying to debug it [1].

It's not that you cannot commit without running gst-indent complaining anyway, please submit a good git formatted patch with
chmod -x .git/hooks/pre-commit
git commit
chmod +x .git/hooks/pre-commit

We'll fix indentation another time.


1. Now that I think about it, it was actually a bug with element_details declarations :P so with your patch I could finally forget it.
See http://www.mail-archive.com/bug-indent@gnu.org/msg00208.html
Comment 2 Tim-Philipp Müller 2010-03-24 11:18:27 UTC
> Yep, we'll fix it sooner or later...
> The indent script is not super perfect anyway, look what it does with the
> fragment source in gstgldeinterlace.c e.g.
> I never managed to completely replicate what it does with emacs... IIRC
> correctly I even found an indent bug while trying to debug it [1].

For what it's worth, you can put markers like these into the code:

/* *INDENT-OFF* */

/* *INDENT-ON* */

to make indent skip it.

Benjamin: committed my own version of the patch, which is more or less the same as yours, sorry about that (I thought I had looked at yours and was under the impression that it contained indent problems, but it doesn't...)

commit 6a15f2fb030a1cab4f602c2b3f744a5f4872639a
Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
Date:   Wed Mar 24 11:10:21 2010 +0000

    gl: use gst_element_class_set_details_simple()
    
    Fixes #613371.
Comment 3 Filippo Argiolas 2010-03-24 13:09:50 UTC
(In reply to comment #2)
> > Yep, we'll fix it sooner or later...
> > The indent script is not super perfect anyway, look what it does with the
> > fragment source in gstgldeinterlace.c e.g.
> > I never managed to completely replicate what it does with emacs... IIRC
> > correctly I even found an indent bug while trying to debug it [1].
> 
> For what it's worth, you can put markers like these into the code:
> 
> /* *INDENT-OFF* */
> 
> /* *INDENT-ON* */
> 
> to make indent skip it.

Oh nice, didn't know about it, we could use it at least for the fragment sources.

> Benjamin: committed my own version of the patch, which is more or less the same
> as yours, sorry about that (I thought I had looked at yours and was under the
> impression that it contained indent problems, but it doesn't...)

Nope, the patch was ok, the indent problems are everywhere else :)
Hence I asked him to resubmit it in the git way to give him the proper credit.