Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
b1696cf2
Commit
b1696cf2
authored
Dec 29, 2010
by
Wim Taymans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multifdsink: only keep last valid timestamp
Fixes #634397
parent
c41a4d0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gst/tcp/gstmultifdsink.c
gst/tcp/gstmultifdsink.c
+5
-3
No files found.
gst/tcp/gstmultifdsink.c
View file @
b1696cf2
...
...
@@ -2052,6 +2052,7 @@ gst_multi_fd_sink_handle_client_write (GstMultiFdSink * sink,
}
else
{
/* client can pick a buffer from the global queue */
GstBuffer
*
buf
;
GstClockTime
timestamp
;
/* for new connections, we need to find a good spot in the
* bufqueue to start streaming from */
...
...
@@ -2078,10 +2079,11 @@ gst_multi_fd_sink_handle_client_write (GstMultiFdSink * sink,
client
->
bufpos
--
;
/* update stats */
timestamp
=
GST_BUFFER_TIMESTAMP
(
buf
);
if
(
client
->
first_buffer_ts
==
GST_CLOCK_TIME_NONE
)
client
->
first_buffer_ts
=
GST_BUFFER_TIMESTAMP
(
buf
)
;
client
->
last_buffer_ts
=
GST_BUFFER_TIMESTAMP
(
buf
);
client
->
first_buffer_ts
=
timestamp
;
if
(
timestamp
!=
-
1
)
client
->
last_buffer_ts
=
timestamp
;
/* decrease flushcount */
if
(
client
->
flushcount
!=
-
1
)
...
...
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