From a3e752abea3ab1c9694d5868ff5115764f398af6 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 1 Sep 2002 11:55:14 +0000 Subject: [PATCH] Fix to make things work again with cvs mpeg2dec Original commit message from CVS: Fix to make things work again with cvs mpeg2dec --- common | 2 +- ext/mpeg2dec/gstmpeg2deccvs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common b/common index f0da7b89be..355c616d5f 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit f0da7b89bea3eb2ed1d149166f28afa5e670dec2 +Subproject commit 355c616d5f6779ea194f8b61704229c6fb04ae7b diff --git a/ext/mpeg2dec/gstmpeg2deccvs.c b/ext/mpeg2dec/gstmpeg2deccvs.c index 0507fbdeea..650e54c135 100644 --- a/ext/mpeg2dec/gstmpeg2deccvs.c +++ b/ext/mpeg2dec/gstmpeg2deccvs.c @@ -374,7 +374,7 @@ gst_mpeg2dec_chain (GstPad *pad, GstBuffer *buf) { GstBuffer *outbuf = NULL; - if (info->display_fbuf) { + if (info->display_fbuf && info->display_fbuf->id) { outbuf = (GstBuffer *) info->display_fbuf->id; GST_BUFFER_TIMESTAMP (outbuf) = mpeg2dec->next_time; @@ -389,7 +389,7 @@ gst_mpeg2dec_chain (GstPad *pad, GstBuffer *buf) gst_pad_push (mpeg2dec->srcpad, outbuf); } } - if (info->discard_fbuf) { + if (info->discard_fbuf && info->discard_fbuf->id) { gst_buffer_unref ((GstBuffer *)info->discard_fbuf->id); }