From e40c3d848761f6450c905ebbc87adbdc769d3ba5 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 12 May 2020 10:49:47 -0400 Subject: [PATCH] Print out the returned profiles like profiles() used to do --- scripts/zmonvif-probe.pl.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/zmonvif-probe.pl.in b/scripts/zmonvif-probe.pl.in index c825f8447..d68adea99 100755 --- a/scripts/zmonvif-probe.pl.in +++ b/scripts/zmonvif-probe.pl.in @@ -102,7 +102,19 @@ if ( $action eq 'probe' ) { $client->create_services(); if ( $action eq 'profiles' ) { - ZoneMinder::ONVIF::profiles($client); + my @profiles = ZoneMinder::ONVIF::profiles($client); + foreach my $profile ( @profiles ) { + my ( $token, $name, $encoding, $width, $height, $frame_rate_limit, $uri ) = @{$profile}; + print join(', ', $token, + $name, + $encoding, + $width, + $height, + $frame_rate_limit, + $uri, + ) . "\n"; + + } # end foreach profile } elsif( $action eq 'move' ) { my $dir = shift; ZoneMinder::ONVIF::move($client, $dir);