mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
amrnbenc: remove global variables
gstcheck is declaring its own buffers glist which ends up overwritten, loks like the code meant to use that already gcc 10 is also complaining about this, but only on static builds for some reason ``` FAILED: subprojects/gst-plugins-ugly/tests/check/elements_amrnbenc /usr/bin/ld: subprojects/gstreamer/libs/gst/check/libgstcheck-1.0.a(gstcheck.c.o):(.bss+0x38): multiple definition of `buffers'; subprojects/gst-plugins-ugly/tests/check/708af1f@@elements_amrnbenc@exe/elements_amrnbenc.c.o:(.bss+0x18): first defined here collect2: error: ld returned 1 exit status ``` also remove unused var `current_buf` Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/62>
This commit is contained in:
parent
ea945eb9c6
commit
995a135df6
1 changed files with 1 additions and 4 deletions
|
@ -28,10 +28,7 @@
|
|||
"layout = (string) interleaved, channels = (int) 1, rate = (int) 8000"
|
||||
#define SINK_CAPS "audio/AMR"
|
||||
|
||||
GList *buffers;
|
||||
GList *current_buf = NULL;
|
||||
|
||||
GstPad *srcpad, *sinkpad;
|
||||
static GstPad *srcpad, *sinkpad;
|
||||
|
||||
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
|
|
Loading…
Reference in a new issue