Skip to content

Commit

Permalink
[viewvideo] remove warning. resolves paparazzi#2141
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Nov 2, 2017
1 parent 8261e36 commit 6f7ed94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sw/airborne/modules/computer_vision/viewvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct viewvideo_t viewvideo = {
* Handles all the video streaming and saving of the image shots
* This is a separate thread, so it needs to be thread safe!
*/
static struct image_t *viewvideo_function(struct UdpSocket *socket, struct image_t *img, uint16_t *rtp_packet_nr, uint32_t *rtp_frame_time)
static struct image_t *viewvideo_function(struct UdpSocket *viewvideo_socket, struct image_t *img, uint16_t *rtp_packet_nr, uint32_t *rtp_frame_time)
{
// Resize image if needed
struct image_t img_small;
Expand Down Expand Up @@ -164,7 +164,7 @@ static struct image_t *viewvideo_function(struct UdpSocket *socket, struct image
if (viewvideo.use_rtp) {
// Send image with RTP
rtp_frame_send(
socket, // UDP socket
viewvideo_socket, // UDP socket
&img_jpeg,
0, // Format 422
VIEWVIDEO_QUALITY_FACTOR, // Jpeg-Quality
Expand Down

0 comments on commit 6f7ed94

Please sign in to comment.