Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Labels
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
mer-core
gst-plugins-base
Commits
6b7bf9d0
Commit
6b7bf9d0
authored
May 16, 2014
by
stskeeps
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1 from adenexter/jb17654
baseaudiosink: Resync when ringbuffer resets
parents
8daf4ab9
bb14a34a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
gst-plugins-base/gst-libs/gst/audio/gstbaseaudiosink.c
gst-plugins-base/gst-libs/gst/audio/gstbaseaudiosink.c
+6
-0
No files found.
gst-plugins-base/gst-libs/gst/audio/gstbaseaudiosink.c
View file @
6b7bf9d0
...
...
@@ -921,6 +921,12 @@ gst_base_audio_sink_setcaps (GstBaseSink * bsink, GstCaps * caps)
if
(
!
gst_ring_buffer_acquire
(
sink
->
ringbuffer
,
spec
))
goto
acquire_error
;
/* We need to resync since the ringbuffer restarted */
sink
->
priv
->
avg_skew
=
-
1
;
sink
->
next_sample
=
-
1
;
sink
->
priv
->
eos_time
=
-
1
;
sink
->
priv
->
discont_time
=
-
1
;
if
(
bsink
->
pad_mode
==
GST_ACTIVATE_PUSH
)
{
GST_DEBUG_OBJECT
(
sink
,
"activate ringbuffer"
);
gst_ring_buffer_activate
(
sink
->
ringbuffer
,
TRUE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment