mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
fix broken support for Ubuntu-20.04LTS
This commit is contained in:
@@ -82,22 +82,28 @@ else()
|
||||
endif()
|
||||
|
||||
# libplist
|
||||
pkg_search_module(PLIST REQUIRED libplist-2.0)
|
||||
if ( PLIST_FOUND )
|
||||
message( STATUS "found libplist-${PLIST_VERSION}" )
|
||||
endif()
|
||||
|
||||
if( APPLE )
|
||||
# use static linking
|
||||
pkg_search_module(PLIST REQUIRED libplist-2.0)
|
||||
find_library( LIBPLIST libplist-2.0.a REQUIRED )
|
||||
message( STATUS "(Static linking) LIBPLIST " ${LIBPLIST} )
|
||||
target_link_libraries ( airplay ${LIBPLIST} )
|
||||
elseif( WIN32)
|
||||
pkg_search_module(PLIST REQUIRED libplist-2.0)
|
||||
find_library( LIBPLIST ${PLIST_LIBRARIES} PATH ${PLIST_LIBDIR} )
|
||||
target_link_libraries ( airplay ${LIBPLIST} )
|
||||
else ()
|
||||
pkg_search_module(PLIST libplist>=2.0)
|
||||
if(NOT PLIST_FOUND)
|
||||
pkg_search_module(PLIST REQUIRED libplist-2.0)
|
||||
endif()
|
||||
find_library( LIBPLIST ${PLIST_LIBRARIES} PATH ${PLIST_LIBDIR} )
|
||||
target_link_libraries ( airplay PUBLIC ${LIBPLIST} )
|
||||
endif()
|
||||
if ( PLIST_FOUND )
|
||||
message( STATUS "found libplist-${PLIST_VERSION}" )
|
||||
endif()
|
||||
target_include_directories( airplay PRIVATE ${PLIST_INCLUDE_DIRS} )
|
||||
|
||||
#libcrypto
|
||||
|
||||
@@ -206,10 +206,18 @@ void video_renderer_init(logger_t *render_logger, const char *server_name, video
|
||||
sync = false;
|
||||
}
|
||||
|
||||
if (!strcmp(renderer_type[i]->codec, h265)) {
|
||||
g_string_replace (launch, (const gchar *) h264, (const gchar *) h265, 0);
|
||||
} else {
|
||||
g_string_replace (launch, (const gchar *) h265, (const gchar *) h264, 0);
|
||||
if (!strcmp(renderer_type[i]->codec, h264)) {
|
||||
char *pos = launch->str;
|
||||
while ((pos = strstr(pos,h265))){
|
||||
pos +=3;
|
||||
*pos = '4';
|
||||
}
|
||||
} else if (!strcmp(renderer_type[i]->codec, h265)) {
|
||||
char *pos = launch->str;
|
||||
while ((pos = strstr(pos,h264))){
|
||||
pos +=3;
|
||||
*pos = '5';
|
||||
}
|
||||
}
|
||||
|
||||
logger_log(logger, LOGGER_DEBUG, "GStreamer video pipeline %d:\n\"%s\"", i + 1, launch->str);
|
||||
|
||||
Reference in New Issue
Block a user