Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
../../modules/stream_out/airplay/airplay.c:495:63: warning: passing argument 3 of ‘vlc_dictionary_insert’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
vlc_dictionary_insert( &keep_alive_headers, "Connection", "Keep-Alive" );
^~~~~~~~~~~~
In file included from ../../include/vlc_common.h:950,
from ../../modules/stream_out/airplay/airplay.c:31:
../../include/vlc_arrays.h:587:80: note: expected ‘void *’ but argument is of type ‘const char *’
vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key, void * p_value )
~~~~~~~^~~~~~~
../../modules/stream_out/airplay/airplay.c:572:18: warning: declaration of ‘p_bytes_curve_pub’ shadows a previous local [-Wshadow=compatible-local]
uint8_t *p_bytes_curve_pub = NULL;
^~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:504:14: note: shadowed declaration is here
uint8_t *p_bytes_curve_pub = NULL;
^~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:573:16: warning: declaration of ‘i_length_curve_pub’ shadows a previous local [-Wshadow=compatible-local]
size_t i_length_curve_pub;
^~~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:505:12: note: shadowed declaration is here
size_t i_length_curve_pub;
^~~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:618:53: warning: passing argument 2 of ‘AirplayPair’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
if ( ( vlc_error = AirplayPair( p_this, "username", p_bytes_ed_pub, i_length_ed_pub ) ) != VLC_SUCCESS )
^~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:167:53: note: expected ‘char *’ but argument is of type ‘const char *’
static int AirplayPair( vlc_object_t *p_this, char *psz_username, uint8_t *p_bytes_ed_pub, size_t i_length_ed_pub );
~~~~~~^~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c: In function ‘AirplayPair’:
../../modules/stream_out/airplay/airplay.c:724:63: warning: passing argument 3 of ‘vlc_dictionary_insert’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
vlc_dictionary_insert( &keep_alive_headers, "Connection", "Keep-Alive" );
^~~~~~~~~~~~
In file included from ../../include/vlc_common.h:950,
from ../../modules/stream_out/airplay/airplay.c:31:
../../include/vlc_arrays.h:587:80: note: expected ‘void *’ but argument is of type ‘const char *’
vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key, void * p_value )
~~~~~~~^~~~~~~
../../modules/stream_out/airplay/airplay.c: In function ‘UpdateOutput’:
../../modules/stream_out/airplay/airplay.c:1342:23: warning: passing argument 1 of ‘StopPlayback’ from incompatible pointer type [-Wincompatible-pointer-types]
StopPlayback( p_stream, false );
^~~~~~~~
../../modules/stream_out/airplay/airplay.c:203:40: note: expected ‘vlc_object_t *’ {aka ‘struct vlc_object_t *’} but argument is of type ‘const sout_stream_t *’ {aka ‘const struct sout_stream_t *’}
static int StopPlayback( vlc_object_t *p_this, bool close_connection );
~~~~~~~~~~~~~~^~~~~~
../../modules/stream_out/airplay/airplay.c:1377:27: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
psz_sout_template = "transcode{%s%s}:http{dst=%s,mux=ts}";
^
../../modules/stream_out/airplay/airplay.c:1391:27: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
psz_sout_template = "http{dst=%s,mux=ts}";
^
../../modules/stream_out/airplay/airplay.c:1397:23: warning: passing argument 1 of ‘StopPlayback’ from incompatible pointer type [-Wincompatible-pointer-types]
StopPlayback( p_stream, false );
^~~~~~~~
../../modules/stream_out/airplay/airplay.c:203:40: note: expected ‘vlc_object_t *’ {aka ‘struct vlc_object_t *’} but argument is of type ‘const sout_stream_t *’ {aka ‘const struct sout_stream_t *’}
static int StopPlayback( vlc_object_t *p_this, bool close_connection );
~~~~~~~~~~~~~~^~~~~~
../../modules/stream_out/airplay/airplay.c: In function ‘DelInternal’:
../../modules/stream_out/airplay/airplay.c:1450:23: warning: passing argument 1 of ‘StopPlayback’ from incompatible pointer type [-Wincompatible-pointer-types]
StopPlayback( p_stream, false );
^~~~~~~~
../../modules/stream_out/airplay/airplay.c:203:40: note: expected ‘vlc_object_t *’ {aka ‘struct vlc_object_t *’} but argument is of type ‘sout_stream_t *’ {aka ‘struct sout_stream_t *’}
static int StopPlayback( vlc_object_t *p_this, bool close_connection );
~~~~~~~~~~~~~~^~~~~~
../../modules/stream_out/airplay/airplay.c: In function ‘startSoutChain’:
../../modules/stream_out/airplay/airplay.c:1501:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
uri.psz_protocol = "http";
^
../../modules/stream_out/airplay/airplay.c:1504:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
uri.psz_path = "/out.ts";
^
../../modules/stream_out/airplay/airplay.c:1547:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
uri.psz_path = "/playlist.m3u8";
^
../../modules/stream_out/airplay/airplay.c: In function ‘StartPlayback’:
../../modules/stream_out/airplay/airplay.c:1639:63: warning: passing argument 3 of ‘vlc_dictionary_insert’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
vlc_dictionary_insert( &keep_alive_headers, "Connection", "Keep-Alive" );
^~~~~~~~~~~~
In file included from ../../include/vlc_common.h:950,
from ../../modules/stream_out/airplay/airplay.c:31:
../../include/vlc_arrays.h:587:80: note: expected ‘void *’ but argument is of type ‘const char *’
vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key, void * p_value )
~~~~~~~^~~~~~~
../../modules/stream_out/airplay/airplay.c: In function ‘StopPlayback’:
../../modules/stream_out/airplay/airplay.c:1684:63: warning: passing argument 3 of ‘vlc_dictionary_insert’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
vlc_dictionary_insert( &keep_alive_headers, "Connection", "Keep-Alive" );
^~~~~~~~~~~~
In file included from ../../include/vlc_common.h:950,
from ../../modules/stream_out/airplay/airplay.c:31:
../../include/vlc_arrays.h:587:80: note: expected ‘void *’ but argument is of type ‘const char *’
vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key, void * p_value )
~~~~~~~^~~~~~~
../../modules/stream_out/airplay/airplay.c: In function ‘GetOrCreateEd25519’:
../../modules/stream_out/airplay/airplay.c:1857:31: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ppsz_values[KEY_PROTOCOL] = AIRPLAY_USERNAME;
^
../../modules/stream_out/airplay/airplay.c:1859:72: warning: passing argument 2 of ‘vlc_keystore_find’ from incompatible pointer type [-Wincompatible-pointer-types]
unsigned int entries_count = vlc_keystore_find( p_sys->p_keystore, ppsz_values, &entries );
^~~~~~~~~~~
In file included from ../../modules/stream_out/airplay/airplay.c:35:
../../include/vlc_keystore.h:131:37: note: expected ‘const char * const*’ but argument is of type ‘char **’
const char *const ppsz_values[KEY_MAX],
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:1896:31: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ppsz_values[KEY_USER] = "USER";
^
../../modules/stream_out/airplay/airplay.c:1905:48: warning: passing argument 2 of ‘vlc_keystore_store’ from incompatible pointer type [-Wincompatible-pointer-types]
vlc_keystore_store( p_sys->p_keystore, ppsz_values, (const uint8_t *)psz_b64_ed_pub_priv, -1,
^~~~~~~~~~~
In file included from ../../modules/stream_out/airplay/airplay.c:35:
../../include/vlc_keystore.h:115:38: note: expected ‘const char * const*’ but argument is of type ‘char **’
const char *const ppsz_values[KEY_MAX],
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:1907:63: warning: passing argument 2 of ‘vlc_keystore_find’ from incompatible pointer type [-Wincompatible-pointer-types]
entries_count = vlc_keystore_find( p_sys->p_keystore, ppsz_values, &entries );
^~~~~~~~~~~
In file included from ../../modules/stream_out/airplay/airplay.c:35:
../../include/vlc_keystore.h:131:37: note: expected ‘const char * const*’ but argument is of type ‘char **’
const char *const ppsz_values[KEY_MAX],
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:1920:49: warning: passing argument 2 of ‘vlc_keystore_remove’ from incompatible pointer type [-Wincompatible-pointer-types]
vlc_keystore_remove( p_sys->p_keystore, ppsz_values );
^~~~~~~~~~~
In file included from ../../modules/stream_out/airplay/airplay.c:35:
../../include/vlc_keystore.h:146:39: note: expected ‘const char * const*’ but argument is of type ‘char **’
const char *const ppsz_values[KEY_MAX]);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c: In function ‘UpdateOutput’:
../../modules/stream_out/airplay/airplay.c:1380:9: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
asprintf( &psz_tmp, psz_sout_template, b_transcode_audio ? "acodec=mp3 ," : "" );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:1385:9: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
asprintf( &psz_tmp, psz_sout_template, b_transcode_video ? "vcodec=h264,maxwidth=1920,maxheight=1080," : "" );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c: In function ‘startSoutChain’:
../../modules/stream_out/airplay/airplay.c:1508:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
asprintf( &psz_sout, psz_sout_template,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
psz_uri + strlen( "http://" ) ); // we don't want the 'http://' protocol prefix
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:1534:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
asprintf( &psz_m3u8,
^~~~~~~~~~~~~~~~~~~~
"#EXTM3U\n"
~~~~~~~~~~~
"\n"
~~~~
"#EXT-X-VERSION:3\n"
~~~~~~~~~~~~~~~~~~~~
"\n"
~~~~
"\n"
~~~~
"\n"
~~~~
"#EXTINF:0,\n"
~~~~~~~~~~~~~~
"\n"
~~~~
"%s",
~~~~~
psz_uri );
~~~~~~~~~
In file included from ../../include/vlc_common.h:532,
from ../../modules/stream_out/airplay/airplay.c:31:
../../modules/stream_out/airplay/airplay.c: In function ‘PingThread’:
../../include/vlc_threads.h:941:27: warning: call to ‘harmful_delay’ declared with attribute warning: use proper event handling instead of short delay
#define vlc_tick_sleep(d) vlc_tick_sleep(check_delay(d))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c:1727:9: note: in expansion of macro ‘vlc_tick_sleep’
vlc_tick_sleep( 100000 );
^~~~~~~~~~~~~~
../../modules/stream_out/airplay/airplay.c: In function ‘UpdateOutput’:
../../modules/stream_out/airplay/airplay.c:1381:9: warning: attempt to free a non-heap object [-Wfree-nonheap-object]
free( psz_sout_template );
^~~~~~~~~~~~~~~~~~~~~~~~~
CCLD libstream_out_airplay_plugin.la
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.