Merge branch 'master' of github.com:ZoneMinder/zoneminder

This commit is contained in:
Isaac Connor
2022-05-20 14:14:24 -04:00
2 changed files with 6 additions and 3 deletions

View File

@@ -1144,7 +1144,7 @@ int VideoStore::writeAudioFramePacket(const std::shared_ptr<ZMPacket> &zm_packet
int ret;
ZM_DUMP_STREAM_PACKET(audio_in_stream, (*ipkt), "input packet");
if (audio_first_dts != AV_NOPTS_VALUE) {
if (audio_first_dts == AV_NOPTS_VALUE) {
audio_first_dts = ipkt->dts;
audio_next_pts = audio_out_ctx->frame_size;
Debug(3, "audio first_dts to %" PRId64, audio_first_dts);

View File

@@ -97,7 +97,6 @@ function setAlarmCues(data) {
} else if (!data.frames) {
Error('No data.frames in setAlarmCues for event ' + eventData.Id);
} else {
console.log(data);
cueFrames = data.frames;
alarmSpans = renderAlarmCues(vid ? $j("#videoobj") : $j("#evtStream"));//use videojs width or zms width
$j(".alarmCue").html(alarmSpans);
@@ -735,7 +734,11 @@ function videoEvent() {
// Called on each event load because each event can be a different width
function drawProgressBar() {
var barWidth = $j('#evtStream').width();
$j('#progressBar').css('width', barWidth);
if (barWidth) {
$j('#progressBar').css('width', barWidth);
} else {
console.log("No bar width: " + barWidth);
}
}
// Shows current stream progress.