mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
turn assertion into nice error message
Original commit message from CVS: turn assertion into nice error message
This commit is contained in:
parent
668bbfbe0b
commit
ca709618f9
1 changed files with 6 additions and 1 deletions
|
@ -1446,7 +1446,12 @@ gst_pad_pull (GstPad *pad)
|
|||
GST_DEBUG_ENTER("(%s:%s)",GST_DEBUG_PAD_NAME(pad));
|
||||
|
||||
g_return_val_if_fail (GST_PAD_DIRECTION (pad) == GST_PAD_SINK, NULL);
|
||||
g_return_val_if_fail (peer != NULL, NULL);
|
||||
|
||||
if (!peer)
|
||||
{
|
||||
g_critical ("gst_pad_pull but %s:%s is unconnected", GST_DEBUG_PAD_NAME(pad));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (peer->gethandler) {
|
||||
GST_DEBUG (GST_CAT_DATAFLOW,"calling gethandler %s of peer pad %s:%s\n",
|
||||
|
|
Loading…
Reference in a new issue