mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
rtpbin: copy buffering stats
when we create an aggregate buffering message, copy the buffering stats form the last message. At least we get correct buffering mode then.
This commit is contained in:
parent
4ae9f125f0
commit
210f1c44c7
1 changed files with 7 additions and 0 deletions
|
@ -1927,8 +1927,13 @@ gst_rtp_bin_handle_message (GstBin * bin, GstMessage * message)
|
|||
GstRtpBinStream *stream;
|
||||
gboolean change = FALSE, active = FALSE;
|
||||
GstClockTime min_out_time;
|
||||
GstBufferingMode mode;
|
||||
gint avg_in, avg_out;
|
||||
gint64 buffering_left;
|
||||
|
||||
gst_message_parse_buffering (message, &percent);
|
||||
gst_message_parse_buffering_stats (message, &mode, &avg_in, &avg_out,
|
||||
&buffering_left);
|
||||
|
||||
stream =
|
||||
g_object_get_data (G_OBJECT (GST_MESSAGE_SRC (message)),
|
||||
|
@ -1990,6 +1995,8 @@ gst_rtp_bin_handle_message (GstBin * bin, GstMessage * message)
|
|||
/* make a new buffering message with the min value */
|
||||
message =
|
||||
gst_message_new_buffering (GST_OBJECT_CAST (bin), min_percent);
|
||||
gst_message_set_buffering_stats (message, mode, avg_in, avg_out,
|
||||
buffering_left);
|
||||
|
||||
if (G_UNLIKELY (change)) {
|
||||
GstClock *clock;
|
||||
|
|
Loading…
Reference in a new issue