Commit 2dfea611 authored by Jonathan Matthew's avatar Jonathan Matthew

removable-media-source: fix encoding target property accessor (bug #658363)

parent 67192685
...@@ -323,7 +323,7 @@ rb_removable_media_source_get_property (GObject *object, ...@@ -323,7 +323,7 @@ rb_removable_media_source_get_property (GObject *object,
g_value_set_object (value, priv->mount); g_value_set_object (value, priv->mount);
break; break;
case PROP_ENCODING_TARGET: case PROP_ENCODING_TARGET:
g_value_set_object (value, priv->encoding_target); gst_value_set_mini_object (value, GST_MINI_OBJECT (priv->encoding_target));
break; break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
...@@ -677,11 +677,13 @@ rb_removable_media_source_get_format_descriptions (RBRemovableMediaSource *sourc ...@@ -677,11 +677,13 @@ rb_removable_media_source_get_format_descriptions (RBRemovableMediaSource *sourc
const GList *l; const GList *l;
GList *desc = NULL; GList *desc = NULL;
g_object_get (source, "encoding-target", &target, NULL); g_object_get (source, "encoding-target", &target, NULL);
for (l = gst_encoding_target_get_profiles (target); l != NULL; l = l->next) { if (target != NULL) {
GstEncodingProfile *profile = l->data; for (l = gst_encoding_target_get_profiles (target); l != NULL; l = l->next) {
desc = g_list_append (desc, g_strdup (gst_encoding_profile_get_description (profile))); GstEncodingProfile *profile = l->data;
desc = g_list_append (desc, g_strdup (gst_encoding_profile_get_description (profile)));
}
g_object_unref (target);
} }
g_object_unref (target);
return desc; return desc;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment