ret = g_object_new (GST_TYPE_OGG_PAD, NULL);
/* we own this one */
- gst_object_ref (ret);
- gst_object_sink (ret);
+ gst_object_ref_sink (ret);
GST_PAD_DIRECTION (ret) = GST_PAD_SRC;
gst_ogg_pad_mark_discont (ret);
}
play_bin->video_sink = g_value_get_object (value);
if (play_bin->video_sink != NULL) {
- gst_object_ref (play_bin->video_sink);
- gst_object_sink (GST_OBJECT_CAST (play_bin->video_sink));
+ gst_object_ref_sink (play_bin->video_sink);
}
/* when changing the videosink, we just remove the
* video pipeline from the cache so that it will be
}
play_bin->audio_sink = g_value_get_object (value);
if (play_bin->audio_sink != NULL) {
- gst_object_ref (play_bin->audio_sink);
- gst_object_sink (GST_OBJECT_CAST (play_bin->audio_sink));
+ gst_object_ref_sink (play_bin->audio_sink);
}
g_hash_table_remove (play_bin->cache, "abin");
break;
/* Take ownership */
if (pending_visualisation) {
- gst_object_ref (pending_visualisation);
- gst_object_sink (pending_visualisation);
+ gst_object_ref_sink (pending_visualisation);
}
/* Do we already have a visualisation change pending ? */