parent
c529145e4b
commit
71e35b2bf3
@ -284,11 +284,11 @@ gst_rtp_speex_pay_handle_buffer (GstBaseRTPPayload * basepayload,
|
|||||||
/* copy data in payload */
|
/* copy data in payload */
|
||||||
memcpy (&payload[0], data, size);
|
memcpy (&payload[0], data, size);
|
||||||
|
|
||||||
gst_buffer_unref (buffer);
|
|
||||||
|
|
||||||
ret = gst_basertppayload_push (basepayload, outbuf);
|
ret = gst_basertppayload_push (basepayload, outbuf);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
|
|
||||||
rtpspeexpay->packet++;
|
rtpspeexpay->packet++;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
@ -298,6 +298,7 @@ parse_error:
|
|||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (rtpspeexpay, STREAM, DECODE, (NULL),
|
GST_ELEMENT_ERROR (rtpspeexpay, STREAM, DECODE, (NULL),
|
||||||
("Error parsing first identification packet."));
|
("Error parsing first identification packet."));
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user