QtGstreamer and GstEncodeBin
George Kiagiadakis
kiagiadakis.george at gmail.com
Wed Feb 15 09:20:16 PST 2012
On Wed, Feb 15, 2012 at 5:41 PM, vaisaari <vaisaari at gmail.com> wrote:
> Unfortunately, after casting "encodebin->setProperty("profile", profilePtr)"
> fails runtime:
>
> "QGlib::Value::set: Unable to handle value type "GstMiniObject". This Value
> instance has been initialized to hold values of type "GstEncodingProfile"
> and no conversion is possible
>
> CRITICAL **: gst_encode_bin_set_profile: assertion `GST_IS_ENCODING_PROFILE
> (profile)' failed"
>
Right, this is actually the expected behavior according to the code :S
I don't really remember why it behaves like that, I guess I should
change it to get the type of the object at runtime rather than at
compile time, so that it knows that your object is really a
GstEncodingProfile instead of just a GstMiniObject.
In the meantime, I guess you'll have to do it with the C api, i.e.
g_object_set()
Note that the smart pointers are implicitly convertable to their
equivalent C types, so you can use a QGlib::ObjectPtr instead of a
GObject* in g_object_set() directly.
Sorry for the confusion.
George
More information about the gstreamer-devel
mailing list