Always initialize the abort pointer, so that our tests won't fail if the preloader isn't used.

This commit is contained in:
mark 2006-12-15 10:20:05 +00:00
parent b2688b8d3c
commit 2ae9d1ff2e
2 changed files with 7 additions and 2 deletions

View File

@ -298,7 +298,7 @@ livesupport_minimal_audio_smil_set_property( GObject * object, guint prop_id, co
{
case ARG_ABORT:
smil->myclass->abort = g_value_get_pointer (value);
printf("SETTING ABORT POINTER: %d\n", smil->myclass->abort);
printf("SETTING ABORT POINTER.");
break;
default:
@ -964,6 +964,10 @@ livesupport_minimal_audio_smil_class_init(
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ABORT, g_param_spec_pointer
("abort", "abort", "abort", (GParamFlags)G_PARAM_WRITABLE));
// Make sure that the abort pointer is always initialized
klass->abort_initial = FALSE;
klass->abort = &klass->abort_initial;
gobject_class->dispose = livesupport_minimal_audio_smil_dispose;
gobject_class->set_property = livesupport_minimal_audio_smil_set_property;
gstelement_class->change_state = livesupport_minimal_audio_smil_change_state;

View File

@ -101,7 +101,8 @@ struct _LivesupportMinimalAudioSmil {
struct _LivesupportMinimalAudioSmilClass {
GstBinClass parent_class;
gboolean* abort;
gboolean abort_initial;
gboolean * abort;
};