mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
h264depay: small cleanups
This commit is contained in:
parent
0cb11943e5
commit
0ed9e07c5d
1 changed files with 8 additions and 11 deletions
|
@ -696,7 +696,7 @@ gst_rtp_h264_depay_handle_nal (GstRtpH264Depay * rtph264depay, GstBuffer * nal,
|
||||||
"all-headers", G_TYPE_BOOLEAN, TRUE, NULL)));
|
"all-headers", G_TYPE_BOOLEAN, TRUE, NULL)));
|
||||||
gst_buffer_unmap (nal, &map);
|
gst_buffer_unmap (nal, &map);
|
||||||
gst_buffer_unref (nal);
|
gst_buffer_unref (nal);
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rtph264depay->new_codec_data &&
|
if (rtph264depay->new_codec_data &&
|
||||||
|
@ -807,17 +807,14 @@ gst_rtp_h264_push_fragmentation_unit (GstRtpH264Depay * rtph264depay,
|
||||||
|
|
||||||
rtph264depay->current_fu_type = 0;
|
rtph264depay->current_fu_type = 0;
|
||||||
|
|
||||||
if (send) {
|
outbuf = gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf,
|
||||||
outbuf = gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf,
|
rtph264depay->fu_timestamp, rtph264depay->fu_marker);
|
||||||
rtph264depay->fu_timestamp, rtph264depay->fu_marker);
|
|
||||||
if (outbuf)
|
if (send && outbuf) {
|
||||||
gst_rtp_base_depayload_push (GST_RTP_BASE_DEPAYLOAD (rtph264depay),
|
gst_rtp_base_depayload_push (GST_RTP_BASE_DEPAYLOAD (rtph264depay), outbuf);
|
||||||
outbuf);
|
outbuf = NULL;
|
||||||
return NULL;
|
|
||||||
} else {
|
|
||||||
return gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf,
|
|
||||||
rtph264depay->fu_timestamp, rtph264depay->fu_marker);
|
|
||||||
}
|
}
|
||||||
|
return outbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstBuffer *
|
static GstBuffer *
|
||||||
|
|
Loading…
Reference in a new issue