Skip to content

make failed on ubuntu20.04, errors in codec/gstreamer/gstdecode.c:204:13

codec/gstreamer/gstdecode.c: In function ‘autoplug_query_cb’:
codec/gstreamer/gstdecode.c:204:13: error: a label can only be part of a statement and a declaration is not a statement
  204 |             GstBaseSink *p_bsink = GST_BASE_SINK_CAST( p_sys->p_decode_out );
      |             ^~~~~~~~~~~
codec/gstreamer/gstdecode.c:205:13: error: expected expression before ‘GstBaseSinkClass’
  205 |             GstBaseSinkClass *p_bclass = GST_BASE_SINK_GET_CLASS( p_bsink );
      |             ^~~~~~~~~~~~~~~~
codec/gstreamer/gstdecode.c:206:20: error: ‘p_bclass’ undeclared (first use in this function)
  206 |             return p_bclass->propose_allocation( p_bsink, p_query );
      |                    ^~~~~~~~
codec/gstreamer/gstdecode.c:206:20: note: each undeclared identifier is reported only once for each function it appears in
codec/gstreamer/gstdecode.c:204:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
  204 |             GstBaseSink *p_bsink = GST_BASE_SINK_CAST( p_sys->p_decode_out );
      |                          ^~~~~~~
codec/gstreamer/gstdecode.c:207:9: note: here
  207 |         default:
      |         ^~~~~~~
make[4]: *** [Makefile:29219: codec/gstreamer/libgstdecode_plugin_la-gstdecode.lo] Error 1
make[4]: Leaving directory '/home/yujin3/vlc/modules'
make[3]: *** [Makefile:38609: all-recursive] Error 1
make[3]: Leaving directory '/home/yujin3/vlc/modules'
make[2]: *** [Makefile:16123: all] Error 2
make[2]: Leaving directory '/home/yujin3/vlc/modules'
make[1]: *** [Makefile:1631: all-recursive] Error 1
make[1]: Leaving directory '/home/yujin3/vlc'
make: *** [Makefile:1518: all] Error 2
Edited by François Cartegnie
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information