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 772503 - gsttimidity: add support for timidity-0.2.x
gsttimidity: add support for timidity-0.2.x
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal enhancement
: 1.10.0
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-06 08:46 UTC by Igor Gnatenko
Modified: 2016-10-31 10:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gsttimidity: add support for timidity-0.2.x (1.14 KB, patch)
2016-10-06 08:46 UTC, Igor Gnatenko
reviewed Details | Review
alternative patch for libtimidity support (614 bytes, patch)
2016-10-07 06:01 UTC, Ozkan Sezer
none Details | Review
reformatted patch (1.09 KB, patch)
2016-10-23 09:06 UTC, Ozkan Sezer
committed Details | Review

Description Igor Gnatenko 2016-10-06 08:46:21 UTC
mid_istream_open_mem() doesn't accept autofree argument anymore.

Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org>
Comment 1 Igor Gnatenko 2016-10-06 08:46:25 UTC
Created attachment 337046 [details] [review]
gsttimidity: add support for timidity-0.2.x
Comment 2 Igor Gnatenko 2016-10-06 08:47:39 UTC
Honestly, I didn't try to compile it... But should work I hope.
Comment 3 Sebastian Dröge (slomo) 2016-10-06 10:33:10 UTC
Comment on attachment 337046 [details] [review]
gsttimidity: add support for timidity-0.2.x

Seems good but needs someone to test it. Debian does not ship a library for timidity (and the timidity package has version 2.13, so a completely different scheme).

Needs someone to confirm that it actually works.
Comment 4 Igor Gnatenko 2016-10-06 10:38:52 UTC
(In reply to Sebastian Dröge (slomo) from comment #3)
> Comment on attachment 337046 [details] [review] [review]
> gsttimidity: add support for timidity-0.2.x
> 
> Seems good but needs someone to test it. Debian does not ship a library for
> timidity (and the timidity package has version 2.13, so a completely
> different scheme).
> 
> Needs someone to confirm that it actually works.
it works if it compiles ;) In Fedora package I didn't do ifdefs, I just removed 0. Basically in 0.1.x it meant that you want to disable autofree, now it's default behavior without possibility to change it.
Comment 5 Ozkan Sezer 2016-10-07 06:00:38 UTC
The patch should work.  However, if such a version as 1.0.0 ever
gets released it will fail again.  I suggest the attached version
instead.
Comment 6 Ozkan Sezer 2016-10-07 06:01:34 UTC
Created attachment 337121 [details] [review]
alternative patch for libtimidity support
Comment 7 Sebastian Dröge (slomo) 2016-10-20 10:11:58 UTC
Review of attachment 337121 [details] [review]:

Needs to be tested by someone with new timidity

::: ext/timidity/gsttimidity.c
@@ +629,3 @@
     GST_DEBUG_OBJECT (timidity, "Parsing song");
 
+#if (LIBTIMIDITY_VERSION-0 < 0x000200L)

Why -0?
Comment 8 Ozkan Sezer 2016-10-20 12:55:12 UTC
(In reply to Sebastian Dröge (slomo) from comment #7)
> +#if (LIBTIMIDITY_VERSION-0 < 0x000200L)
> 
> Why -0?

Just an old habit of mine for testing a value of a macro which might not actually be defined.
Comment 9 Ozkan Sezer 2016-10-22 14:40:00 UTC
(In reply to Sebastian Dröge (slomo) from comment #7)
> Needs to be tested by someone with new timidity

It works for me, FWIW..
Comment 10 Sebastian Dröge (slomo) 2016-10-23 08:11:06 UTC
Comment on attachment 337121 [details] [review]
alternative patch for libtimidity support

Alright, let's get that in then. Can you please make this a "git format-patch" style patch with a useful commit message?
Comment 11 Ozkan Sezer 2016-10-23 09:06:01 UTC
Created attachment 338282 [details] [review]
reformatted patch

Done.
Comment 12 Ozkan Sezer 2016-10-28 05:58:11 UTC
Patch is not in yet, AFAICS.  Is there anything else to be done?
Comment 13 Tim-Philipp Müller 2016-10-28 09:31:38 UTC
We're currently in a freeze preparing for the 1.10 release, it will probably have to wait until after 1.10 is out, please ping again then if we forget.
Comment 14 Ozkan Sezer 2016-10-31 09:34:27 UTC
(In reply to Tim-Philipp Müller from comment #13)
> We're currently in a freeze preparing for the 1.10 release, it will probably
> have to wait until after 1.10 is out, please ping again then if we forget.

I wish the patch had gone into your upcoming release because it is a trivial one,
but OK.
Comment 15 Sebastian Dröge (slomo) 2016-10-31 10:51:34 UTC
commit ae2a5f1ba928dfb61712d073b49d4cd37b5d6aa7
Author: sezero <sezero@users.sourceforge.net>
Date:   Sun Oct 23 12:02:00 2016 +0300

    timidity: add support for libtimidity-0.2.x
    
    mid_istream_open_mem() doesn't accept an autofree argument as of
    libtimidity >= 0.2.0
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772503