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 619172 - [vp8] exclude dec/enc based on CONFIG_VP8_DECODER/ENCODER
[vp8] exclude dec/enc based on CONFIG_VP8_DECODER/ENCODER
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.19
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-05-20 08:26 UTC by Philip Jägenstedt
Modified: 2010-05-21 08:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (3.06 KB, patch)
2010-05-20 08:26 UTC, Philip Jägenstedt
needs-work Details | Review
fixup (1.08 KB, patch)
2010-05-21 05:59 UTC, Philip Jägenstedt
committed Details | Review
fixup 2 (1.38 KB, patch)
2010-05-21 06:15 UTC, Philip Jägenstedt
committed Details | Review

Description Philip Jägenstedt 2010-05-20 08:26:12 UTC
Created attachment 161524 [details] [review]
patch

This may not be very autotoolish, but works with libvpx in the state that libvpx is actually in. Moved the debug init to the elements themselves to minimize amount of #ifdefs

Incidentally, Opera needs this as we don't much like shipping an encoder we don't use :)
Comment 1 Sebastian Dröge (slomo) 2010-05-20 14:16:49 UTC
vpx_config.h is not meant to be installed AFAIK (and make install of libvpx doesn't). It's like autoconf's config.h, i.e. for build time configuration of libvpx.

Better would probably be a configure check for the decoder and encoder symbols vpx_codec_vp8_cx_algo and vpx_codec_vp8_dx_algo.
Comment 2 Sebastian Dröge (slomo) 2010-05-20 14:50:59 UTC
commit d3c9d84fdff9e411e345ce41508f8ed6813760fb
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Thu May 20 16:49:03 2010 +0200

    vp8: Only enable the encoder or decoder if it's available in libvpx
    
    Fixes bug #619172.

commit e428c10605560f652a1d84e2eced837ad08f262b
Author: Philip Jägenstedt <philipj@opera.com>
Date:   Thu May 20 10:19:54 2010 +0200

    vp8: exlcude dec/enc based on CONFIG_VP8_DECODER/ENCODER
    
    This may not be very autotoolish, but works with libvpx in the state
    that libvpx is actually in. Moved the debug init to the elements
    themselves to minimize amount of #ifdefs
Comment 3 Philip Jägenstedt 2010-05-21 05:59:47 UTC
Created attachment 161604 [details] [review]
fixup
Comment 4 Philip Jägenstedt 2010-05-21 06:00:28 UTC
Not quite there yet, the link test fails unless you have -lpthread. I threw -lm in there too as I know vpx needs it and I've had issues with it when compiling on a backported branch. Won't hurt.
Comment 5 Philip Jägenstedt 2010-05-21 06:15:39 UTC
Created attachment 161605 [details] [review]
fixup 2

Oops, found another bug, see commit message.
Comment 6 Philip Jägenstedt 2010-05-21 06:24:44 UTC
Ignore fixup/fixup 2, got the wrong author by using git commit -c, trying again...
Comment 7 Sebastian Dröge (slomo) 2010-05-21 06:27:48 UTC
Don't worry, I've corrected the author :)
Comment 8 Sebastian Dröge (slomo) 2010-05-21 06:28:56 UTC
commit 54e6f65ef3e335406e1f210c81b3afe007f12650
Author: Philip Jägenstedt <philipj@opera.com>
Date:   Fri May 21 08:13:06 2010 +0200

    vp8: move #ifdef HAVE_VP8_ENCODER/DECODER
    
    Otherwise we'll try including e.g. <vpx/vp8cx.h> which doesn't exist.

commit 1e5f37165071977c8338f7125c79846de5d47d6e
Author: Philip Jägenstedt <philipj@opera.com>
Date:   Thu May 20 16:49:03 2010 +0200

    vp8: link with -lm -lpthread when testing for vp8 encoder/decoder
    
    Fixup for bug #619172.
Comment 9 Sebastian Dröge (slomo) 2010-05-21 06:31:25 UTC
(In reply to comment #3)
> Created an attachment (id=161604) [details] [review]
> fixup

I'm not 100% sure if -lpthread is correct on Windows too...
Comment 10 Philip Jägenstedt 2010-05-21 06:49:12 UTC
Oh, you're awake already :) I was getting tired of the patch attachment game, so there's a 3rd related fix at the tip of branch 20100521-opera-vp8 in git://sourcecode.opera.com/gstreamer/gst-plugins-bad.git ripe for the picking. I'll also push the coming QoS fixes there, so it might be more convenient for both of us.
Comment 11 Sebastian Dröge (slomo) 2010-05-21 08:19:44 UTC
Ok thanks, I'll merge things from there then :)