+2005-05-19 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
+
+ * gst/gstpipeline.c: (gst_pipeline_send_event):
+ Do not access variables after they have been deleted.
+
2005-05-19 Wim Taymans <wim@fluendo.com>
* tools/gst-inspect.c: (print_plugin_features):
gboolean was_playing;
gboolean res;
GstElementState state;
+ GstEventType event_type = GST_EVENT_TYPE (event);
/* need to call _get_state() since a bin state is only updated
* with this call. FIXME, we should probably not block but just
gst_element_get_state (element, &state, NULL, NULL);
was_playing = state == GST_STATE_PLAYING;
- if (was_playing && GST_EVENT_TYPE (event) == GST_EVENT_SEEK)
+ if (was_playing && event_type == GST_EVENT_SEEK)
gst_element_set_state (element, GST_STATE_PAUSED);
res = GST_ELEMENT_CLASS (parent_class)->send_event (element, event);
- if (was_playing && GST_EVENT_TYPE (event) == GST_EVENT_SEEK)
+ if (was_playing && event_type == GST_EVENT_SEEK)
gst_element_set_state (element, GST_STATE_PLAYING);
return res;