rtpvp8pay: post error message on bus on error and don't use g_message()
authorTim-Philipp Müller <tim@centricular.com>
Wed, 18 Jun 2014 12:29:47 +0000 (13:29 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 18 Jun 2014 13:54:59 +0000 (14:54 +0100)
gst/rtp/gstrtpvp8pay.c

index 97b88f44c7f3fb358c09cfb53e2a09d665fcf3df..a50dee40c1e205254f0a2b80260cac62c3cfbaae 100644 (file)
@@ -460,7 +460,8 @@ gst_rtp_vp8_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer)
   size = gst_buffer_get_size (buffer);
 
   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;
   }