mimenc: No need to do a try allocation

This commit is contained in:
Olivier Crête 2009-11-18 11:14:28 -05:00
parent 8fa5f01100
commit fd9f049bf2

View file

@ -482,7 +482,7 @@ paused_mode_task (gpointer data)
GstBuffer *buffer; GstBuffer *buffer;
GstEvent *event = NULL; GstEvent *event = NULL;
buffer = gst_buffer_try_new_and_alloc (TCP_HEADER_SIZE); buffer = gst_buffer_new_and_alloc (TCP_HEADER_SIZE);
GST_BUFFER_TIMESTAMP (buffer) = mimenc->last_buffer + PAUSED_MODE_INTERVAL; GST_BUFFER_TIMESTAMP (buffer) = mimenc->last_buffer + PAUSED_MODE_INTERVAL;
gst_mim_enc_create_tcp_header (mimenc, buffer, 0, FALSE, TRUE); gst_mim_enc_create_tcp_header (mimenc, buffer, 0, FALSE, TRUE);