From 0ed9e07c5db49a4f3d22bd5b808b1e0a46c49800 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 25 Jul 2012 12:49:07 +0200 Subject: [PATCH] h264depay: small cleanups --- gst/rtp/gstrtph264depay.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c index 354b23e..c49aaa2 100644 --- a/gst/rtp/gstrtph264depay.c +++ b/gst/rtp/gstrtph264depay.c @@ -696,7 +696,7 @@ gst_rtp_h264_depay_handle_nal (GstRtpH264Depay * rtph264depay, GstBuffer * nal, "all-headers", G_TYPE_BOOLEAN, TRUE, NULL))); gst_buffer_unmap (nal, &map); gst_buffer_unref (nal); - return FALSE; + return NULL; } if (rtph264depay->new_codec_data && @@ -807,17 +807,14 @@ gst_rtp_h264_push_fragmentation_unit (GstRtpH264Depay * rtph264depay, rtph264depay->current_fu_type = 0; - if (send) { - outbuf = gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf, - rtph264depay->fu_timestamp, rtph264depay->fu_marker); - if (outbuf) - gst_rtp_base_depayload_push (GST_RTP_BASE_DEPAYLOAD (rtph264depay), - outbuf); - return NULL; - } else { - return gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf, - rtph264depay->fu_timestamp, rtph264depay->fu_marker); + outbuf = gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf, + rtph264depay->fu_timestamp, rtph264depay->fu_marker); + + if (send && outbuf) { + gst_rtp_base_depayload_push (GST_RTP_BASE_DEPAYLOAD (rtph264depay), outbuf); + outbuf = NULL; } + return outbuf; } static GstBuffer * -- 2.7.4