pad: rework probe's hook_marshall function
authorThiago Santos <thiagoss@osg.samsung.com>
Thu, 24 Mar 2016 20:34:20 +0000 (17:34 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Mon, 28 Mar 2016 14:14:41 +0000 (11:14 -0300)
commit368ee8a336d0c868d81fdace54b24431a8b48cbf
treeb66045e7426188a81453e326c0d2c2fb14b08a97
parent1967d56aea6910b7ee238dda905b549a6be575af
pad: rework probe's hook_marshall function

PUSH and PULL mode have opposite scenarios for IDLE and BLOCK
probes.

For PUSH it will BLOCK with some data type and IDLE won't have a type.
For PULL it will BLOCK before getting some data and will be IDLE when
some data is obtained.

The check in hook_marshall was specific for PUSH mode and would cause
PULL probes to fail to be called. Adding different checks for the mode
to fix this issue.

https://bugzilla.gnome.org/show_bug.cgi?id=761211
gst/gstpad.c