From olivares14031 at yahoo.com Mon Apr 8 18:22:16 2024 From: olivares14031 at yahoo.com (Antonio Olivares) Date: Mon, 8 Apr 2024 15:22:16 +0000 (UTC) Subject: [MPlayer-users] make: *** [Makefile:730: libmpcodecs/ae_lavc.o] Error 1 References: <1157426272.7280000.1712589736141.ref@mail.yahoo.com> Message-ID: <1157426272.7280000.1712589736141@mail.yahoo.com> Dear mplayer-users, compilation fails on updated fedora 39 cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/libxml2 -c -o libmpcodecs/ae_lavc.o libmpcodecs/ae_lavc.c libmpcodecs/ae_lavc.c: In function 'bind_lavc': libmpcodecs/ae_lavc.c:53:41: error: 'AVCodecContext' has no member named 'channels' ?? 53 |???????? mux_a->wf->nChannels = lavc_actx->channels; ????? |???????????????????????????????????????? ^~ libmpcodecs/ae_lavc.c: In function 'mpae_init_lavc': libmpcodecs/ae_lavc.c:154:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ? 154 |???????? lavc_acodec = avcodec_find_encoder_by_name(lavc_param_acodec); ????? |???????????????????? ^ libmpcodecs/ae_lavc.c:195:18: error: 'AVCodecContext' has no member named 'channels' ? 195 |???????? lavc_actx->channels = encoder->params.channels; ????? |????????????????? ^~ libmpcodecs/ae_lavc.c:222:58: error: 'AVCodecContext' has no member named 'channels' ? 222 |???????????????? int framesize = (blkalign - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1; ????? |????????????????????????????????????????????????????????? ^~ libmpcodecs/ae_lavc.c:222:90: error: 'AVCodecContext' has no member named 'channels' ? 222 |? = (blkalign - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1; ????? |???????????????????????????????????????????????????????????? ^~ libmpcodecs/ae_lavc.c:241:80: error: 'AVCodecContext' has no member named 'channels' ? 241 | c_actx->frame_size = (lavc_actx->block_align - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1; ????? |???????????????????????????????????????????????????????????? ^~ libmpcodecs/ae_lavc.c:241:112: error: 'AVCodecContext' has no member named 'channels' ? 241 | >block_align - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1; ????? |???????????????????????????????????????????????????????????? ^~ make: *** [Makefile:730: libmpcodecs/ae_lavc.o] Error 1 Best Regards, Antonio From eclipse7 at gmx.net Tue Apr 9 01:51:11 2024 From: eclipse7 at gmx.net (Alexander Strasser) Date: Tue, 9 Apr 2024 00:51:11 +0200 Subject: [MPlayer-users] make: *** [Makefile:730: libmpcodecs/ae_lavc.o] Error 1 In-Reply-To: <1157426272.7280000.1712589736141@mail.yahoo.com> References: <1157426272.7280000.1712589736141.ref@mail.yahoo.com> <1157426272.7280000.1712589736141@mail.yahoo.com> Message-ID: Hi Antonio! On 2024-04-08 15:22 +0000, Antonio Olivares wrote: > Dear mplayer-users, > > compilation fails on updated fedora 39 > > cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/libxml2 -c -o libmpcodecs/ae_lavc.o libmpcodecs/ae_lavc.c > libmpcodecs/ae_lavc.c: In function 'bind_lavc': > libmpcodecs/ae_lavc.c:53:41: error: 'AVCodecContext' has no member named 'channels' > ?? 53 |???????? mux_a->wf->nChannels = lavc_actx->channels; > ????? |???????????????????????????????????????? ^~ > libmpcodecs/ae_lavc.c: In function 'mpae_init_lavc': > libmpcodecs/ae_lavc.c:154:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] > ? 154 |???????? lavc_acodec = avcodec_find_encoder_by_name(lavc_param_acodec); > ????? |???????????????????? ^ > libmpcodecs/ae_lavc.c:195:18: error: 'AVCodecContext' has no member named 'channels' > ? 195 |???????? lavc_actx->channels = encoder->params.channels; > ????? |????????????????? ^~ > libmpcodecs/ae_lavc.c:222:58: error: 'AVCodecContext' has no member named 'channels' > ? 222 |???????????????? int framesize = (blkalign - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1; > ????? |????????????????????????????????????????????????????????? ^~ > libmpcodecs/ae_lavc.c:222:90: error: 'AVCodecContext' has no member named 'channels' > ? 222 |? = (blkalign - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1; > ????? |???????????????????????????????????????????????????????????? ^~ > > libmpcodecs/ae_lavc.c:241:80: error: 'AVCodecContext' has no member named 'channels' > ? 241 | c_actx->frame_size = (lavc_actx->block_align - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1; > ????? |???????????????????????????????????????????????????????????? ^~ > > libmpcodecs/ae_lavc.c:241:112: error: 'AVCodecContext' has no member named 'channels' > ? 241 | >block_align - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1; > ????? |???????????????????????????????????????????????????????????? ^~ > > make: *** [Makefile:730: libmpcodecs/ae_lavc.o] Error 1 This is also a symptom of the incompatibility with recent FFmpeg sources. The problems are fixed now in latest MPlayer SVN version. Starting with MPlayer SVN r38458 it should hopefully build for you again. If possible try again and report back. Thanks in advance! Best regards, Alexander From grgoffe at yahoo.com Thu Apr 25 20:30:29 2024 From: grgoffe at yahoo.com (George R Goffe) Date: Thu, 25 Apr 2024 17:30:29 +0000 (UTC) Subject: [MPlayer-users] Current build from the repo... fails... References: <1251644732.3847306.1714066229318.ref@mail.yahoo.com> Message-ID: <1251644732.3847306.1714066229318@mail.yahoo.com> Howdy, I'm having trouble building mplayer on my Fedora 41 system with gcc "gcc (GCC) 14.0.1 20240411 (Red Hat 14.0.1-0)".? Could I get some help with this please? Here's what I'm getting: cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statemen t -std=c11 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE - I. -Iffcfg-common.h:464:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdisca rded-qualifiers] ?464 | ????{"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ?????????????^~~~~~~~~~~~~ cfg-common.h:466:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?466 | ????{"dvbin", dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ??????????????^~~~~~~~~~~~~~~ cfg-common.h:506:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?506 | ????{"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ???????????????^~~~~~~~~~~~~~~~~ cfg-common.h:509:65: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?509 | ????{"vf*", &vf_settings, CONF_TYPE_OBJ_SETTINGS_LIST, 0, 0, 0, &vf_obj_list}, ?????| ????????????????????????????????????????????????????????????????^ cfg-common.h:519:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?519 | ????{"pphelp", pp_help, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, ?????| ???????????????^~~~~~~ cfg-common.h:525:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?525 | ????{"ssf", scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ????????????^~~~~~~~~~~~~~~~~~ cfg-common.h:547:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?547 | ????{"lavdopts", lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ?????????????????^~~~~~~~~~~~~~~~~~~~~ cfg-common.h:548:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?548 | ????{"lavfdopts", ?lavfdopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL}, ?????| ???????????????????^~~~~~~~~~~~~~ cfg-mplayer.h:354:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-q ualifiers] ?354 | ????{"tvscan", tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ???????????????^~~~~~~~~~~ cfg-mplayer.h:361:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-q ualifiers] ?361 | ????{"-hifiers] ?460 | ????{"pvr", pvropts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ????????????^~~~~~~~~~~~ cfg-common.h:464:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?464 | ????{"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ?????????????^~~~~~~~~~~~~ cfg-common.h:466:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?466 | ????{"dvbin", dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ??????????????^~~~~~~~~~~~~~~ cfg-common.h:506:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?506 | ????{"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ???????????????^~~~~~~~~~~~~~~~~ cfg-common.h:509:65: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?509 | ????{"vf*", &vf_settings, CONF_TYPE_OBJ_SETTINGS_LIST, 0, 0, 0, &vf_obj_list}, ?????| ????????????????????????????????????????????????????????????????^ cfg-common.h:519:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?519 | ????{"pphelp", pp_help, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, ?????| ???????????????^~~~~~~ cfg-common.h:525:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?525 | ????{"ssf", scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, ?????| ????????????^~~~~~~~~~~~~~~~~~ cfg-common.h:547:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu alifiers] ?547 | ????{"mplayer.c: In function 'main': mplayer.c:3539:41: error: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompat ible-pointer-types] 3539 | ????????????????stream_write_buffer(os, &in_size, 4); ?????| ????????????????????????????????????????^~~~~~~~ ?????| ????????????????????????????????????????| ?????| ????????????????????????????????????????int * In file included from ./mp_core.h:26, ????????????????from gui/interface.h:23, ????????????????from mplayer.c:73: ./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'int *' ?203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len); ?????| ?????????????????????????????????????~~~~~~~~~~~~~~~^~~ make: *** [Makefile:730: mplayer.o] Error 1 From eclipse7 at gmx.net Sun Apr 28 21:48:18 2024 From: eclipse7 at gmx.net (Alexander Strasser) Date: Sun, 28 Apr 2024 20:48:18 +0200 Subject: [MPlayer-users] Current build from the repo... fails... In-Reply-To: <1251644732.3847306.1714066229318@mail.yahoo.com> References: <1251644732.3847306.1714066229318.ref@mail.yahoo.com> <1251644732.3847306.1714066229318@mail.yahoo.com> Message-ID: Hi George! On 2024-04-25 17:30 +0000, George R Goffe wrote: > Howdy, > > I'm having trouble building mplayer on my Fedora 41 system with gcc "gcc (GCC) 14.0.1 20240411 (Red Hat 14.0.1-0)".? In GCC 14 many previous warning will become errors instead. Especially `-Wincompatible-pointer-types` is a problem in many places in MPlayer. > Could I get some help with this please? There is a patch on the development mailing list that might be enough to make the build work again or not: https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2024-April/074173.html In any way it will never be applied as it makes sense to deal with this issues in a more one by one fashion. I sent it just to raise awareness so we can tackle this issues. Best regards, Alexander > Here's what I'm getting: > > cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security > -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statemen > t -std=c11 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE - > I. -Iffcfg-common.h:464:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdisca > rded-qualifiers] > ?464 | ????{"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ?????????????^~~~~~~~~~~~~ > cfg-common.h:466:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?466 | ????{"dvbin", dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ??????????????^~~~~~~~~~~~~~~ > cfg-common.h:506:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?506 | ????{"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ???????????????^~~~~~~~~~~~~~~~~ > cfg-common.h:509:65: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?509 | ????{"vf*", &vf_settings, CONF_TYPE_OBJ_SETTINGS_LIST, 0, 0, 0, &vf_obj_list}, > ?????| ????????????????????????????????????????????????????????????????^ > cfg-common.h:519:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?519 | ????{"pphelp", pp_help, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, > ?????| ???????????????^~~~~~~ > cfg-common.h:525:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?525 | ????{"ssf", scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ????????????^~~~~~~~~~~~~~~~~~ > cfg-common.h:547:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?547 | ????{"lavdopts", lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ?????????????????^~~~~~~~~~~~~~~~~~~~~ > cfg-common.h:548:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?548 | ????{"lavfdopts", ?lavfdopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL}, > ?????| ???????????????????^~~~~~~~~~~~~~ > cfg-mplayer.h:354:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-q > ualifiers] > ?354 | ????{"tvscan", tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ???????????????^~~~~~~~~~~ > cfg-mplayer.h:361:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-q > ualifiers] > ?361 | ????{"-hifiers] > ?460 | ????{"pvr", pvropts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ????????????^~~~~~~~~~~~ > cfg-common.h:464:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?464 | ????{"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ?????????????^~~~~~~~~~~~~ > cfg-common.h:466:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?466 | ????{"dvbin", dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ??????????????^~~~~~~~~~~~~~~ > cfg-common.h:506:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?506 | ????{"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ???????????????^~~~~~~~~~~~~~~~~ > cfg-common.h:509:65: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?509 | ????{"vf*", &vf_settings, CONF_TYPE_OBJ_SETTINGS_LIST, 0, 0, 0, &vf_obj_list}, > ?????| ????????????????????????????????????????????????????????????????^ > cfg-common.h:519:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?519 | ????{"pphelp", pp_help, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, > ?????| ???????????????^~~~~~~ > cfg-common.h:525:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?525 | ????{"ssf", scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, > ?????| ????????????^~~~~~~~~~~~~~~~~~ > cfg-common.h:547:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qu > alifiers] > ?547 | ????{"mplayer.c: In function 'main': > mplayer.c:3539:41: error: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompat > ible-pointer-types] > 3539 | ????????????????stream_write_buffer(os, &in_size, 4); > ?????| ????????????????????????????????????????^~~~~~~~ > ?????| ????????????????????????????????????????| > ?????| ????????????????????????????????????????int * > In file included from ./mp_core.h:26, > ????????????????from gui/interface.h:23, > ????????????????from mplayer.c:73: > ./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'int *' > ?203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len); > ?????| ?????????????????????????????????????~~~~~~~~~~~~~~~^~~ > make: *** [Makefile:730: mplayer.o] Error 1 > From nomiya at lake.dti.ne.jp Mon Apr 29 04:09:37 2024 From: nomiya at lake.dti.ne.jp (Masaru Nomiya) Date: Mon, 29 Apr 2024 10:09:37 +0900 Subject: [MPlayer-users] AVFifoBuffer error Message-ID: <87cyq90yb2.wl-nomiya@lake.dti.ne.jp> Hello, I have been suffering from the following error for some time now and have been unable to build; [...] nu/menu.o libmenu/menu.c libao2/ao_jack.c:74:8: error: unknown type name 'AVFifoBuffer' 74 | static AVFifoBuffer *buffer; | ^~~~~~~~~~~~ In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, [...] I have not been able to find the cause of this error, which occurs regardless of the gcc version. I would be very grateful if you could help me. Best Regards. --- ????? Masaru Nomiya mail-to: nomiya @ lake.dti.ne.jp ???? ???? "Microsoft is overhauling its cybersecurity strategy, called the Secure Future Initiative, to incorporate key security features into its core set of technology platforms and cloud services. " -- Microsoft overhauls cyber strategy to finally embrace security by default -- From eclipse7 at gmx.net Mon Apr 29 22:39:55 2024 From: eclipse7 at gmx.net (Alexander Strasser) Date: Mon, 29 Apr 2024 21:39:55 +0200 Subject: [MPlayer-users] AVFifoBuffer error In-Reply-To: <87cyq90yb2.wl-nomiya@lake.dti.ne.jp> References: <87cyq90yb2.wl-nomiya@lake.dti.ne.jp> Message-ID: Hi Nomiya-san! On 2024-04-29 10:09 +0900, Masaru Nomiya wrote: > > I have been suffering from the following error for some time now and > have been unable to build; > > [...] > nu/menu.o libmenu/menu.c > libao2/ao_jack.c:74:8: error: unknown type name 'AVFifoBuffer' > 74 | static AVFifoBuffer *buffer; > | ^~~~~~~~~~~~ > In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, > [...] > > I have not been able to find the cause of this error, which occurs > regardless of the gcc version. > > I would be very grateful if you could help me. The error is because ao jack is yet repaired after latest major bumps of FFmpeg. There are 3 options: 1. Configure with --disable-jack 2. Compile against an older ffmpeg release e.g. 6.1.1 3. Use this experimental patch I sent to mplayer development mailing list: https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20240409/b46ad60a/attachment-0001.patch The problem with option 3 is that it is technically wrong. The new ffmpeg FIFO is not for use by multiple threads. That means while the patch worked for me as far as I could hear, it may make problems on other machines and maybe just from time to time. Are you using ao jack for audio playback with mplayer? I intend to implement a correct solution that uses a thread safe FIFO, but I can't tell when I will have the time. Best regards, Alexander [...] From nomiya at lake.dti.ne.jp Tue Apr 30 02:03:43 2024 From: nomiya at lake.dti.ne.jp (Masaru Nomiya) Date: Tue, 30 Apr 2024 08:03:43 +0900 Subject: [MPlayer-users] AVFifoBuffer error In-Reply-To: References: <87cyq90yb2.wl-nomiya@lake.dti.ne.jp> Message-ID: <87frv33h68.wl-nomiya@lake.dti.ne.jp> Hello, In the Message; Subject : Re: [MPlayer-users] AVFifoBuffer error Message-ID : Date & Time: Mon, 29 Apr 2024 21:39:55 +0200 [AS] == Alexander Strasser has written: AS> Hi Nomiya-san! Wow! Are you an Japanese anime fan too? Anyway, AS> On 2024-04-29 10:09 +0900, Masaru Nomiya wrote: MN> > MN> > I have been suffering from the following error for some time now and MN> > have been unable to build; MN> > MN> > [...] MN> > nu/menu.o libmenu/menu.c MN> > libao2/ao_jack.c:74:8: error: unknown type name 'AVFifoBuffer' MN> > 74 | static AVFifoBuffer *buffer; MN> > | ^~~~~~~~~~~~ MN> > In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37, MN> > [...] MN> > MN> > I have not been able to find the cause of this error, which occurs MN> > regardless of the gcc version. MN> > MN> > I would be very grateful if you could help me. AS> The error is because ao jack is yet repaired after latest major AS> bumps of FFmpeg. AS> There are 3 options: AS> 1. Configure with --disable-jack AS> 2. Compile against an older ffmpeg release e.g. 6.1.1 AS> 3. Use this experimental patch I sent to mplayer development mailing list: AS> https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20240409/b46ad60a/attachment-0001.patch AS> The problem with option 3 is that it is technically wrong. The new AS> ffmpeg FIFO is not for use by multiple threads. That means while the AS> patch worked for me as far as I could hear, it may make problems on AS> other machines and maybe just from time to time. AS> Are you using ao jack for audio playback with mplayer? No, I don't use it. I thought the culprit was around jack too, and tried to build with the --disable-jack switch, but it didn't work. But after reading your email, I tried again and was able to build it!!! My MPlayer is 1.5.r38477. Thanks a lot. AS> I intend to implement a correct solution that uses a thread safe FIFO, AS> but I can't tell when I will have the time. Every day is Sunday for me, so I have plenty of time to wait. I'm waiting in anticipation. Best Regards. --- ????? Masaru Nomiya mail-to: nomiya @ lake.dti.ne.jp ???? ???? "Microsoft is overhauling its cybersecurity strategy, called the Secure Future Initiative, to incorporate key security features into its core set of technology platforms and cloud services. " -- Microsoft overhauls cyber strategy to finally embrace security by default --