Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EdosL0Util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
SIPS
EdosL0Util
Commits
d72adb41
Commit
d72adb41
authored
7 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
potential fix for seek_to
parent
7f441802
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
edosl0util/stream.py
+3
-1
3 additions, 1 deletion
edosl0util/stream.py
with
3 additions
and
1 deletion
edosl0util/stream.py
+
3
−
1
View file @
d72adb41
...
@@ -13,6 +13,7 @@ from edosl0util.headers import (
...
@@ -13,6 +13,7 @@ from edosl0util.headers import (
)
)
from
edosl0util
import
headers
from
edosl0util
import
headers
from
edosl0util.timecode
import
dt_to_cds
LOG
=
logging
.
getLogger
(
__name__
)
LOG
=
logging
.
getLogger
(
__name__
)
...
@@ -262,6 +263,7 @@ class PacketStream(object):
...
@@ -262,6 +263,7 @@ class PacketStream(object):
Seek forward such that the next packet provided will be the first packet
Seek forward such that the next packet provided will be the first packet
having a timestamp available in the secondary header >= stamp and apid.
having a timestamp available in the secondary header >= stamp and apid.
"""
"""
target_tc
=
dt_to_cds
(
stamp
)
# seek past partial groups
# seek past partial groups
packet
=
self
.
next
()
packet
=
self
.
next
()
while
not
packet
.
cds_timecode
:
while
not
packet
.
cds_timecode
:
...
@@ -269,7 +271,7 @@ class PacketStream(object):
...
@@ -269,7 +271,7 @@ class PacketStream(object):
# seek to first packet => `stamp`
# seek to first packet => `stamp`
current_tc
=
packet
.
cds_timecode
current_tc
=
packet
.
cds_timecode
while
current_tc
<
s
ta
mp
:
while
current_tc
<
ta
rget_tc
:
packet
=
self
.
next
()
packet
=
self
.
next
()
current_tc
=
packet
.
cds_timecode
or
current_tc
current_tc
=
packet
.
cds_timecode
or
current_tc
...
...
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