Fix to make things work again with cvs mpeg2dec

Original commit message from CVS:
Fix to make things work again with cvs mpeg2dec
This commit is contained in:
Wim Taymans 2002-09-01 11:55:14 +00:00
parent 68f8130aef
commit a3e752abea
2 changed files with 3 additions and 3 deletions

2
common

@ -1 +1 @@
Subproject commit f0da7b89bea3eb2ed1d149166f28afa5e670dec2
Subproject commit 355c616d5f6779ea194f8b61704229c6fb04ae7b

View file

@ -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);
}