gst/videorate/gstvideorate.c (gst_video_rate_flush_prev): Whoops, fix bug introduced. Bad hacker!

Original commit message from CVS:
2006-04-04  Andy Wingo  <wingo@pobox.com>

* gst/videorate/gstvideorate.c (gst_video_rate_flush_prev):
Whoops, fix bug introduced. Bad hacker!
This commit is contained in:
Andy Wingo 2006-04-04 11:20:24 +00:00
parent a0ffc95d5d
commit eb390423e7
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2006-04-04 Andy Wingo <wingo@pobox.com> 2006-04-04 Andy Wingo <wingo@pobox.com>
* gst/videorate/gstvideorate.c (gst_video_rate_flush_prev):
Whoops, fix bug introduced. Bad hacker!
* gst/videorate/gstvideorate.c (gst_video_rate_flush_prev): * gst/videorate/gstvideorate.c (gst_video_rate_flush_prev):
Properly handle the case where you get EOS before any buffers are Properly handle the case where you get EOS before any buffers are
received. Use gst_buffer_make_metadata_writable where appropriate. received. Use gst_buffer_make_metadata_writable where appropriate.

View file

@ -409,7 +409,8 @@ gst_video_rate_flush_prev (GstVideoRate * videorate)
goto eos_before_buffers; goto eos_before_buffers;
/* make sure we can write to the metadata */ /* make sure we can write to the metadata */
outbuf = gst_buffer_make_metadata_writable (videorate->prevbuf); outbuf = gst_buffer_make_metadata_writable
(gst_buffer_ref (videorate->prevbuf));
/* this is the timestamp we put on the buffer */ /* this is the timestamp we put on the buffer */
push_ts = videorate->next_ts; push_ts = videorate->next_ts;