mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-18 11:35:15 -04:00
Merge branch 'master' of github.com:ZoneMinder/zoneminder
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user