We usually first create the stream_id for the stream_start event and then add
the pad to the element. This means that this functions should work when there
are no pads on the element yet.
* provide a stream-id for every source pad, otherwise
* all source pads will have the same and are not
* distinguishable */
- g_return_val_if_fail (parent->numsrcpads == 1 || stream_id, NULL);
+ g_return_val_if_fail (parent->numsrcpads <= 1 || stream_id, NULL);
/* First try to get the upstream stream-start stream-id from the sinkpad.
* This will only work for non-source elements */