deep-notify can come from pads too, replacing GstElement by GstObject.

Original commit message from CVS:
deep-notify can come from pads too, replacing GstElement by GstObject.
This commit is contained in:
Julien Moutte 2003-05-06 22:22:39 +00:00
parent 1d6e331083
commit 2096330104
2 changed files with 8 additions and 8 deletions

View file

@ -57,7 +57,7 @@ struct _GstPlaySignal
GstElementState new_state; GstElementState new_state;
} state; } state;
struct { struct {
GstElement* element; GstObject* object;
GParamSpec* param; GParamSpec* param;
} info; } info;
struct { struct {
@ -343,8 +343,8 @@ gst_play_idle_signal (GstPlay *play)
break; break;
case INFORMATION: case INFORMATION:
g_signal_emit (G_OBJECT (play), gst_play_signals[INFORMATION], 0, g_signal_emit (G_OBJECT (play), gst_play_signals[INFORMATION], 0,
signal->signal_data.info.element, signal->signal_data.info.param); signal->signal_data.info.object, signal->signal_data.info.param);
gst_object_unref (GST_OBJECT(signal->signal_data.info.element)); gst_object_unref (signal->signal_data.info.object);
break; break;
case PIPELINE_ERROR: case PIPELINE_ERROR:
if (gst_element_get_state(play->pipeline) == GST_STATE_PLAYING) if (gst_element_get_state(play->pipeline) == GST_STATE_PLAYING)
@ -462,8 +462,8 @@ callback_pipeline_error ( GstElement *object,
} }
static void static void
callback_pipeline_deep_notify ( GstElement *element, callback_pipeline_deep_notify ( GstObject *element,
GstElement *orig, GstObject *orig,
GParamSpec *param, GParamSpec *param,
GstPlay* play) GstPlay* play)
{ {
@ -471,10 +471,10 @@ callback_pipeline_deep_notify ( GstElement *element,
signal = g_new0(GstPlaySignal, 1); signal = g_new0(GstPlaySignal, 1);
signal->signal_id = INFORMATION; signal->signal_id = INFORMATION;
signal->signal_data.info.element = orig; signal->signal_data.info.object = orig;
signal->signal_data.info.param = param; signal->signal_data.info.param = param;
gst_object_ref (GST_OBJECT(orig)); gst_object_ref (orig);
g_async_queue_push(play->signal_queue, signal); g_async_queue_push(play->signal_queue, signal);

View file

@ -140,7 +140,7 @@ struct _GstPlayClass
/* signals */ /* signals */
void (*information) ( GstPlay* play, void (*information) ( GstPlay* play,
GstElement* element, GstObject* element,
GParamSpec *param); GParamSpec *param);
void (*pipeline_error) ( GstPlay* play, void (*pipeline_error) ( GstPlay* play,
GstElement* element, GstElement* element,