rtpvp8pay: post error message on bus on error and don't use g_message()

This commit is contained in:
Tim-Philipp Müller 2014-06-18 13:29:47 +01:00
parent f4db7443ae
commit 725b8f272b

View file

@ -460,7 +460,8 @@ gst_rtp_vp8_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer)
size = gst_buffer_get_size (buffer); size = gst_buffer_get_size (buffer);
if (G_UNLIKELY (!gst_rtp_vp8_pay_parse_frame (self, buffer, size))) { if (G_UNLIKELY (!gst_rtp_vp8_pay_parse_frame (self, buffer, size))) {
g_message ("Failed to parse frame"); GST_ELEMENT_ERROR (self, STREAM, ENCODE, (NULL),
("Failed to parse VP8 frame"));
return GST_FLOW_ERROR; return GST_FLOW_ERROR;
} }