gst/gstbuffer.h: remove macro that wouldn't work anymore because struct member has been removed.

Original commit message from CVS:
* gst/gstbuffer.h:
remove macro that wouldn't work anymore because struct member has
been removed.
* gst/schedulers/entryscheduler.c: (schedule_forward):
fix segfault for unconnected pads
This commit is contained in:
Benjamin Otte 2004-04-06 05:59:31 +00:00
parent a14e748c7b
commit b107a0a3ef
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2004-04-06 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst/gstbuffer.h:
remove macro that wouldn't work anymore because struct member has
been removed.
* gst/schedulers/entryscheduler.c: (schedule_forward):
fix segfault for unconnected pads
2004-04-06 Benjamin Otte <in7y118@public.uni-hamburg.de> 2004-04-06 Benjamin Otte <in7y118@public.uni-hamburg.de>
reviewed by David Schleef <ds@schleef.org> reviewed by David Schleef <ds@schleef.org>

View file

@ -59,7 +59,6 @@ extern GType _gst_buffer_type;
#define GST_BUFFER_MAXSIZE(buf) (GST_BUFFER(buf)->maxsize) #define GST_BUFFER_MAXSIZE(buf) (GST_BUFFER(buf)->maxsize)
#define GST_BUFFER_TIMESTAMP(buf) (GST_BUFFER(buf)->timestamp) #define GST_BUFFER_TIMESTAMP(buf) (GST_BUFFER(buf)->timestamp)
#define GST_BUFFER_DURATION(buf) (GST_BUFFER(buf)->duration) #define GST_BUFFER_DURATION(buf) (GST_BUFFER(buf)->duration)
#define GST_BUFFER_FORMAT(buf) (GST_BUFFER(buf)->format)
#define GST_BUFFER_OFFSET(buf) (GST_BUFFER(buf)->offset) #define GST_BUFFER_OFFSET(buf) (GST_BUFFER(buf)->offset)
#define GST_BUFFER_OFFSET_END(buf) (GST_BUFFER(buf)->offset_end) #define GST_BUFFER_OFFSET_END(buf) (GST_BUFFER(buf)->offset_end)
#define GST_BUFFER_FREE_DATA_FUNC(buf) (GST_BUFFER(buf)->free_data) #define GST_BUFFER_FREE_DATA_FUNC(buf) (GST_BUFFER(buf)->free_data)

View file

@ -631,7 +631,7 @@ schedule_forward (Entry * entry)
if (GST_FLAG_IS_SET (element, GST_ELEMENT_DECOUPLED)) if (GST_FLAG_IS_SET (element, GST_ELEMENT_DECOUPLED))
return NULL; return NULL;
for (list = element->pads; list; list = g_list_next (list)) { for (list = element->pads; list; list = g_list_next (list)) {
if (GST_PAD_IS_SINK (list->data)) if (GST_PAD_IS_SINK (list->data) || !PAD_PRIVATE (list->data))
continue; continue;
entry = schedule_forward ((Entry *) PAD_PRIVATE (list->data)); entry = schedule_forward ((Entry *) PAD_PRIVATE (list->data));
if (entry) if (entry)