Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gstlal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duncan Macleod
gstlal
Commits
2dc4f9ad
Commit
2dc4f9ad
authored
5 years ago
by
Cody Messick
Browse files
Options
Downloads
Patches
Plain Diff
itacac: Fix thinko in assert
parent
64ff2007
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-inspiral/gst/lal/gstlal_itacac.c
+6
-1
6 additions, 1 deletion
gstlal-inspiral/gst/lal/gstlal_itacac.c
with
6 additions
and
1 deletion
gstlal-inspiral/gst/lal/gstlal_itacac.c
+
6
−
1
View file @
2dc4f9ad
...
...
@@ -963,7 +963,12 @@ static GstFlowReturn process(GSTLALItacac *itacac) {
// trigger window, thus we know there must be a gap sample after these, and can ditch them, though we
// need to make sure we aren't flushing any samples from the next trigger window
g_assert
(
availablesamps
>
nongapsamps
||
itacacpad
->
EOS
);
g_assert
(
itacacpad
->
samples_available_for_padding
==
0
);
// We must either be just starting up or have just come off a gap. In the former case, we'll be at the
// start of the trigger window and have no samples for padding from the previous trigger window; in
// the latter case, we'll either be at the start of the trigger window with some samples available for
// padding from the previous window or we'll be in the middle of the trigger window and have no
// samples available for padding
g_assert
(
itacacpad
->
samples_available_for_padding
==
0
||
samples_left_in_window
==
itacacpad
->
n
);
outsamps
=
nongapsamps
>
samples_left_in_window
?
samples_left_in_window
:
nongapsamps
;
gst_audioadapter_flush_samples
(
itacacpad
->
adapter
,
outsamps
);
samples_left_in_window
-=
outsamps
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment