ext/mpeg2enc/gstmpeg2encpicturereader.cc: fix thomas' error errors.

Original commit message from CVS:
2004-01-20  Ronald Bultje  <rbultje@ronald.bitfreak.net>

* ext/mpeg2enc/gstmpeg2encpicturereader.cc:
fix thomas' error errors.
This commit is contained in:
Ronald S. Bultje 2004-01-20 13:08:39 +00:00
parent 156163e66a
commit 777a0fcefa
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-01-20 Ronald Bultje <rbultje@ronald.bitfreak.net>
* ext/mpeg2enc/gstmpeg2encpicturereader.cc:
fix thomas' error errors.
2004-01-20 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/mpeg2enc/gstmpeg2enc.cc:

View file

@ -98,7 +98,8 @@ GstMpeg2EncPictureReader::LoadFrame ()
if ((data = (GstData *) gst_pad_get_element_private (pad))) {
gst_pad_set_element_private (pad, NULL);
} else if (!(data = gst_pad_pull (pad))) {
gst_element_error (gst_pad_get_parent (pad), RESOURCE, READ, NULL, NULL);
gst_element_error (gst_pad_get_parent (pad), RESOURCE, READ,
(NULL), (NULL));
return true;
}