mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
throw error instead of assertion
Original commit message from CVS: throw error instead of assertion
This commit is contained in:
parent
2b5dba5de4
commit
0f003d87b3
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-02-16 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_chain):
|
||||
throw error when not negotiated instead of asserting
|
||||
|
||||
2004-02-15 Julien MOUTTE <julien@moutte.net>
|
||||
|
||||
* gst/switch/gstswitch.c: (gst_switch_loop): More fixes for
|
||||
|
|
|
@ -216,7 +216,12 @@ gst_audio_convert_chain (GstPad *pad, GstData *data)
|
|||
return;
|
||||
}
|
||||
|
||||
g_assert (gst_pad_is_negotiated (this->sink));
|
||||
if (!gst_pad_is_negotiated (this->sink))
|
||||
{
|
||||
GST_ELEMENT_ERROR (this, CORE, NEGOTIATION, NULL,
|
||||
("Sink pad not negotiated before chain function"));
|
||||
return;
|
||||
}
|
||||
if (!gst_pad_is_negotiated (this->src)) {
|
||||
gst_data_unref (data);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue