gstreamer fixes

This commit is contained in:
2020-04-19 22:49:28 +02:00
parent 688d361e5e
commit bf97700ffe
4 changed files with 107 additions and 28 deletions

View File

@@ -178,7 +178,7 @@ raop_rtp_mirror_thread(void *arg)
/* Set timeout value to 5ms */
tv.tv_sec = 0;
tv.tv_usec = 5000;
tv.tv_usec = 1000;
/* Get the correct nfds value and set rfds */
FD_ZERO(&rfds);
@@ -213,7 +213,7 @@ raop_rtp_mirror_thread(void *arg)
// We're calling recv for a certain amount of data, so we need a timeout
struct timeval tv;
tv.tv_sec = 0;
tv.tv_usec = 5000;
tv.tv_usec = 1000;
if (setsockopt(stream_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) {
logger_log(raop_rtp_mirror->logger, LOGGER_ERR, "raop_rtp_mirror could not set stream socket timeout %d %s", errno, strerror(errno));
break;
@@ -331,8 +331,11 @@ raop_rtp_mirror_thread(void *arg)
// The information in the payload contains an SPS and a PPS NAL
float width_source = byteutils_get_float(packet, 40);
printf("source-width: %f", width_source);
float height_source = byteutils_get_float(packet, 44);
float width = byteutils_get_float(packet, 56);
printf("width: %f", width);
float height = byteutils_get_float(packet, 60);
logger_log(raop_rtp_mirror->logger, LOGGER_DEBUG, "raop_rtp_mirror width_source = %f height_source = %f width = %f height = %f",
width_source, height_source, width, height);