mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
debugging fixes
Original commit message from CVS: debugging fixes
This commit is contained in:
parent
b645d7ab8c
commit
16ff395986
2 changed files with 7 additions and 4 deletions
|
@ -665,11 +665,14 @@ static void
|
|||
gst_bin_child_state_change_func (GstBin * bin, GstElementState oldstate,
|
||||
GstElementState newstate, GstElement * child)
|
||||
{
|
||||
GstElementState old = 0, new = 0;
|
||||
gint old_idx = 0, new_idx = 0, i;
|
||||
|
||||
while (oldstate >>= 1)
|
||||
old = oldstate;
|
||||
new = newstate;
|
||||
while (old >>= 1)
|
||||
old_idx++;
|
||||
while (newstate >>= 1)
|
||||
while (new >>= 1)
|
||||
new_idx++;
|
||||
|
||||
GST_LOCK (bin);
|
||||
|
|
|
@ -2918,9 +2918,9 @@ gst_element_pads_activate (GstElement * element, gboolean active)
|
|||
static GstElementStateReturn
|
||||
gst_element_change_state (GstElement * element)
|
||||
{
|
||||
GstElementState old_state;
|
||||
GstElementState old_state, old_pending;
|
||||
GstObject *parent;
|
||||
gint old_pending, old_transition;
|
||||
gint old_transition;
|
||||
|
||||
g_return_val_if_fail (GST_IS_ELEMENT (element), GST_STATE_FAILURE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue