Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Camilo Celis Guzman
gst-plugins-good
Commits
0524e6f8
Commit
0524e6f8
authored
Dec 18, 2018
by
Nicolas Dufresne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtph265depay: Drain on EOS event
parent
65b01d5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
gst/rtp/gstrtph265depay.c
gst/rtp/gstrtph265depay.c
+24
-0
No files found.
gst/rtp/gstrtph265depay.c
View file @
0524e6f8
...
...
@@ -109,6 +109,12 @@ static gboolean gst_rtp_h265_depay_setcaps (GstRTPBaseDepayload * filter,
GstCaps
*
caps
);
static
gboolean
gst_rtp_h265_depay_handle_event
(
GstRTPBaseDepayload
*
depay
,
GstEvent
*
event
);
static
GstBuffer
*
gst_rtp_h265_complete_au
(
GstRtpH265Depay
*
rtph265depay
,
GstClockTime
*
out_timestamp
,
gboolean
*
out_keyframe
);
static
void
gst_rtp_h265_depay_push
(
GstRtpH265Depay
*
rtph265depay
,
GstBuffer
*
outbuf
,
gboolean
keyframe
,
GstClockTime
timestamp
,
gboolean
marker
);
static
void
gst_rtp_h265_depay_class_init
(
GstRtpH265DepayClass
*
klass
)
...
...
@@ -181,6 +187,21 @@ gst_rtp_h265_depay_reset (GstRtpH265Depay * rtph265depay, gboolean hard)
}
}
static
void
gst_rtp_h265_depay_drain
(
GstRtpH265Depay
*
rtph265depay
)
{
GstClockTime
timestamp
;
gboolean
keyframe
;
GstBuffer
*
outbuf
;
if
(
!
rtph265depay
->
picture_start
)
return
;
outbuf
=
gst_rtp_h265_complete_au
(
rtph265depay
,
&
timestamp
,
&
keyframe
);
if
(
outbuf
)
gst_rtp_h265_depay_push
(
rtph265depay
,
outbuf
,
keyframe
,
timestamp
,
FALSE
);
}
static
void
gst_rtp_h265_depay_finalize
(
GObject
*
object
)
{
...
...
@@ -1573,6 +1594,9 @@ gst_rtp_h265_depay_handle_event (GstRTPBaseDepayload * depay, GstEvent * event)
case
GST_EVENT_FLUSH_STOP
:
gst_rtp_h265_depay_reset
(
rtph265depay
,
FALSE
);
break
;
case
GST_EVENT_EOS
:
gst_rtp_h265_depay_drain
(
rtph265depay
);
break
;
default:
break
;
}
...
...
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