mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
decoder: fix gst_vaapi_picture_new_field() object type.
Fix gst_vaapi_picture_new_field() to preserve the original picture type. e.g. gst_vaapi_picture_new_field() with a GstVaapiPictureH264 argument shall generate a GstVaapiPictureH264 object.
This commit is contained in:
parent
e530c57741
commit
e11f815b0d
1 changed files with 3 additions and 1 deletions
|
@ -215,13 +215,15 @@ gst_vaapi_picture_new(
|
|||
GstVaapiPicture *
|
||||
gst_vaapi_picture_new_field(GstVaapiPicture *picture)
|
||||
{
|
||||
GType type;
|
||||
GstMiniObject *obj;
|
||||
GstVaapiCodecObject *va_obj;
|
||||
GstVaapiCodecObjectConstructorArgs args;
|
||||
|
||||
g_return_val_if_fail(GST_VAAPI_IS_PICTURE(picture), NULL);
|
||||
|
||||
obj = gst_mini_object_new(GST_VAAPI_TYPE_PICTURE);
|
||||
type = G_TYPE_FROM_CLASS(GST_VAAPI_PICTURE_GET_CLASS(picture));
|
||||
obj = gst_mini_object_new(type);
|
||||
if (!obj)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue