mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
gst/gstghostpad.c: Activating a ghostpad with no internal pad in push mode is ok.
Original commit message from CVS: * gst/gstghostpad.c: (gst_ghost_pad_get_internal), (gst_ghost_pad_do_activate_push): Activating a ghostpad with no internal pad in push mode is ok.
This commit is contained in:
parent
100a96c969
commit
45867cc853
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-10-07 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstghostpad.c: (gst_ghost_pad_get_internal),
|
||||
(gst_ghost_pad_do_activate_push):
|
||||
Activating a ghostpad with no internal pad in push mode
|
||||
is ok.
|
||||
|
||||
2005-10-07 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/gstobject.h:
|
||||
|
|
|
@ -463,7 +463,8 @@ gst_ghost_pad_get_internal (GstPad * pad)
|
|||
|
||||
GST_PROXY_LOCK (pad);
|
||||
internal = GST_GHOST_PAD (pad)->internal;
|
||||
gst_object_ref (internal);
|
||||
if (internal)
|
||||
gst_object_ref (internal);
|
||||
GST_PROXY_UNLOCK (pad);
|
||||
|
||||
return internal;
|
||||
|
@ -552,7 +553,7 @@ gst_ghost_pad_do_activate_push (GstPad * pad, gboolean active)
|
|||
ret = gst_pad_activate_push (internal, active);
|
||||
gst_object_unref (internal);
|
||||
} else {
|
||||
ret = FALSE;
|
||||
ret = TRUE;
|
||||
}
|
||||
} else {
|
||||
ret = TRUE;
|
||||
|
|
Loading…
Reference in a new issue