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 674091 - a52dec: update to compile against liba52 git master
a52dec: update to compile against liba52 git master
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
git master
Other All
: Normal trivial
: 0.10.20
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-04-14 04:26 UTC by LRN
Modified: 2012-05-17 11:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Update to liba52 git master (4.18 KB, patch)
2012-04-14 04:27 UTC, LRN
needs-work Details | Review
A diff between original liba52 and videolan version (1.05 KB, text/plain)
2012-04-15 17:19 UTC, LRN
  Details
Adapt existing code to work with newer liba52 (3.49 KB, patch)
2012-04-15 20:00 UTC, LRN
committed Details | Review

Description LRN 2012-04-14 04:26:39 UTC
"Official" liba52 [1] is 10 years old.
The most recent "unofficial" liba52 is hosted at [2] and was updated the last time at 2009-12 (less than 3 years old), and had 21 patch since it forked from [1].
a52dec should link to [2] instead of [1].


[1] http://liba52.sourceforge.net/
[2] svn://svn.videolan.org/liba52
Comment 1 LRN 2012-04-14 04:27:34 UTC
Created attachment 212035 [details] [review]
Update to liba52 git master

a52_init() doesn't have arguments now.
It used to take CPU flags, but now CPU capabilities are autodetected.
Hence cpuflags attribute in gsta52dec can be removed, as well as the dependency
on ORC for CPU capability detection.
Comment 2 Tim-Philipp Müller 2012-04-14 12:13:02 UTC
Comment on attachment 212035 [details] [review]
Update to liba52 git master

Just requiring the other version isn't particularly helpful, esp. if the changes are so minor. We should detect and support both. Is there a define somewhere in the headers that would allow us to tell them apart?
Comment 3 LRN 2012-04-15 17:19:47 UTC
Created attachment 212089 [details]
A diff between original liba52 and videolan version

From the looks of things, you can anchor on A52_ACCEL_DETECT.
Also, i'm starting to doubt the correctness of my patch. I guess it depends on the intentions you have. I'm not sure it makes much sense to tell a52 which acceleration options to use, if a52 can autodetect them, especially if gst itself autodetects them too.
Comment 4 LRN 2012-04-15 20:00:02 UTC
Created attachment 212096 [details] [review]
Adapt existing code to work with newer liba52

ifdefs some parts of the code depending on A52_ACCEL_DETECT, maintaining (hopefully) compatibility with liba52-0.7.4.

There's also a strange sizeof(a52_state_t) configure check. It fails, but gsta52 is compiled nevertheless.

Can you check that -ugly still compiles against 0.7.4 with this patch? I don't have 0.7.4 readily available.
Comment 5 Mark Nauwelaerts 2012-05-17 10:52:12 UTC
Still works for me (0.7.4) with patch applied.
Comment 6 Mark Nauwelaerts 2012-05-17 11:17:09 UTC
commit b199334a6bcfb384a9cbe8f93c5d1dce1622c1b6
Author: Руслан Ижбулатов <lrn1986@gmail.com>
Date:   Sun Apr 15 23:39:48 2012 +0400

    a52dec: adapt to work also with new liba52
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=674091