mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-25 18:14:15 +00:00
file-checker: GstEncodingProfile is a GObject in 1.0
This commit is contained in:
parent
25688f4e50
commit
f3bd5ac0c0
1 changed files with 3 additions and 3 deletions
|
@ -120,7 +120,7 @@ gst_validate_file_checker_class_init (GstValidateFileCheckerClass * klass)
|
||||||
NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME));
|
NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME));
|
||||||
|
|
||||||
g_object_class_install_property (gobject_class, PROP_PROFILE,
|
g_object_class_install_property (gobject_class, PROP_PROFILE,
|
||||||
g_param_spec_boxed ("profile", "Profile",
|
g_param_spec_object ("profile", "Profile",
|
||||||
"The GstEncodingProfile " "that should match what the file contains",
|
"The GstEncodingProfile " "that should match what the file contains",
|
||||||
GST_TYPE_ENCODING_PROFILE, G_PARAM_READWRITE | G_PARAM_STATIC_NAME));
|
GST_TYPE_ENCODING_PROFILE, G_PARAM_READWRITE | G_PARAM_STATIC_NAME));
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ gst_validate_file_checker_set_property (GObject * object, guint prop_id,
|
||||||
case PROP_PROFILE:
|
case PROP_PROFILE:
|
||||||
if (fc->profile)
|
if (fc->profile)
|
||||||
gst_encoding_profile_unref (fc->profile);
|
gst_encoding_profile_unref (fc->profile);
|
||||||
fc->profile = (GstEncodingProfile *) g_value_dup_boxed (value);
|
fc->profile = (GstEncodingProfile *) g_value_get_object (value);
|
||||||
break;
|
break;
|
||||||
case PROP_DURATION:
|
case PROP_DURATION:
|
||||||
fc->duration = g_value_get_uint64 (value);
|
fc->duration = g_value_get_uint64 (value);
|
||||||
|
@ -243,7 +243,7 @@ gst_validate_file_checker_get_property (GObject * object, guint prop_id,
|
||||||
g_value_set_string (value, fc->uri);
|
g_value_set_string (value, fc->uri);
|
||||||
break;
|
break;
|
||||||
case PROP_PROFILE:
|
case PROP_PROFILE:
|
||||||
g_value_set_boxed (value, fc->profile);
|
g_value_set_object (value, fc->profile);
|
||||||
break;
|
break;
|
||||||
case PROP_DURATION:
|
case PROP_DURATION:
|
||||||
g_value_set_uint64 (value, fc->duration);
|
g_value_set_uint64 (value, fc->duration);
|
||||||
|
|
Loading…
Reference in a new issue