Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
luzpaz
gstreamer
Commits
981c654a
Commit
981c654a
authored
May 10, 2001
by
Erik Walthinsen
Browse files
some minor updates with a hair more speed
Original commit message from CVS: some minor updates with a hair more speed
parent
4cbdcef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
gst/gstpad.h
View file @
981c654a
...
...
@@ -335,8 +335,8 @@ GstPadNegotiateReturn gst_pad_negotiate_proxy (GstPad *srcpad, GstPad *destpad,
void
gst_pad_push
(
GstPad
*
pad
,
GstBuffer
*
buf
);
#else
#define gst_pad_push(pad,buf) G_STMT_START{ \
if (
GST_RPAD_PEER(pad)
->pushfunc) \
(
GST_RPAD_PEER(pad)->pushfunc)((GstPad *)GST_RPAD_PEER(pad
),(buf)); \
if (
((GstRealPad *)(pad))->peer
->pushfunc) \
(
((GstRealPad *)(pad))->peer->pushfunc)((GstPad *)(((GstRealPad *)(pad))->peer
),(buf)); \
}G_STMT_END
#endif
#if 1
...
...
@@ -344,9 +344,13 @@ GstBuffer* gst_pad_pull (GstPad *pad);
GstBuffer
*
gst_pad_pullregion
(
GstPad
*
pad
,
GstRegionType
type
,
guint64
offset
,
guint64
len
);
#else
#define gst_pad_pull(pad) \
((GST_RPAD_PEER(pad)->pullfunc) ? (GST_RPAD_PEER(pad)->pullfunc)((GstPad *)GST_RPAD_PEER(pad)) : NULL)
( (((GstRealPad *)(pad))->peer->pullfunc) ? \
(((GstRealPad *)(pad))->peer->pullfunc)((GstPad *)(((GstRealPad *)(pad))->peer)) : \
NULL )
#define gst_pad_pullregion(pad,type,offset,len) \
((GST_RPAD_PEER(pad)->pullregionfunc) ? (GST_RPAD_PEER(pad)->pullregionfunc)((GstPad *)GST_RPAD_PEER(pad),(type),(offset),(len)) : NULL)
( (((GstRealPad *)(pad))->peer->pullregionfunc) ? \
(((GstRealPad *)(pad))->peer->pullregionfunc)((GstPad *)(((GstRealPad *)(pad))->peer),(type),(offset),(len)) : \
NULL )
#endif
#define gst_pad_eos(pad) (GST_RPAD_EOSFUNC(GST_RPAD_PEER(pad))(GST_PAD(GST_RPAD_PEER(pad))))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment