From eb390423e75e02d3b3f81494b3f63146e7344b28 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 4 Apr 2006 11:20:24 +0000 Subject: [PATCH] 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 * gst/videorate/gstvideorate.c (gst_video_rate_flush_prev): Whoops, fix bug introduced. Bad hacker! --- ChangeLog | 3 +++ gst/videorate/gstvideorate.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 96c265ee08..bac11e1d32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-04-04 Andy Wingo + * gst/videorate/gstvideorate.c (gst_video_rate_flush_prev): + Whoops, fix bug introduced. Bad hacker! + * gst/videorate/gstvideorate.c (gst_video_rate_flush_prev): Properly handle the case where you get EOS before any buffers are received. Use gst_buffer_make_metadata_writable where appropriate. diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 43b8d2e9ef..5716b9788b 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -409,7 +409,8 @@ gst_video_rate_flush_prev (GstVideoRate * videorate) goto eos_before_buffers; /* 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 */ push_ts = videorate->next_ts;