freebsd-ports/multimedia/vlc/files/patch-modules_access_live555.cpp
Jason E. Hale 9526f730d5 multimedia/vlc: Fix build with net/liveMedia >= 2024.11.28
access/live555.cpp:542:36: error: cannot initialize a parameter of type 'EventLoopWatchVariable *' (aka 'atomic<char> *') with an rvalue of type 'char *'
  542 |     p_sys->scheduler->doEventLoop( &p_sys->event_rtsp );
      |                                    ^~~~~~~~~~~~~~~~~~
/usr/local/include/UsageEnvironment/UsageEnvironment.hh:155:52: note: passing argument to parameter 'watchVariable' here
  155 |   virtual void doEventLoop(EventLoopWatchVariable* watchVariable = NULL) = 0;
      |                                                    ^
access/live555.cpp:1444:36: error: cannot initialize a parameter of type 'EventLoopWatchVariable *' (aka 'atomic<char> *') with an rvalue of type 'char *'
 1444 |     p_sys->scheduler->doEventLoop( &p_sys->event_data );
      |                                    ^~~~~~~~~~~~~~~~~~
/usr/local/include/UsageEnvironment/UsageEnvironment.hh:155:52: note: passing argument to parameter 'watchVariable' here
  155 |   virtual void doEventLoop(EventLoopWatchVariable* watchVariable = NULL) = 0;

Reported by:	pkg-fallout
2025-02-08 01:43:52 -05:00

17 lines
746 B
C++

The signature of doEventLoop() was changed to match that of
triggerEvent(), by using std::atomic_char as the 'watch variable'
type in net/liveMedia 2024.11.28.
--- modules/access/live555.cpp.orig 2024-06-05 15:56:07 UTC
+++ modules/access/live555.cpp
@@ -236,8 +236,8 @@ struct demux_sys_t
bool b_no_data; /* if we never received any data */
int i_no_data_ti; /* consecutive number of TaskInterrupt */
- char event_rtsp;
- char event_data;
+ std::atomic_char event_rtsp;
+ std::atomic_char event_data;
bool b_get_param; /* Does the server support GET_PARAMETER */
bool b_paused; /* Are we paused? */