niimaqdxsrc: use pixel-aspect-ratio for caps not par
This commit is contained in:
parent
a4af051165
commit
ebe9271d5c
@ -310,11 +310,12 @@ gst_niimaqdxsrc_new_caps_from_pixel_format (const char *pixel_format,
|
|||||||
structure = gst_structure_from_string (caps_string, NULL);
|
structure = gst_structure_from_string (caps_string, NULL);
|
||||||
if (structure == NULL)
|
if (structure == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
gst_structure_set (structure,
|
gst_structure_set (structure,
|
||||||
"width", G_TYPE_INT, width,
|
"width", G_TYPE_INT, width,
|
||||||
"height", G_TYPE_INT, height,
|
"height", G_TYPE_INT, height,
|
||||||
"framerate", GST_TYPE_FRACTION, framerate_n, framerate_d,
|
"framerate", GST_TYPE_FRACTION, framerate_n, framerate_d,
|
||||||
"par", GST_TYPE_FRACTION, par_n, par_d, NULL);
|
"pixel-aspect-ratio", GST_TYPE_FRACTION, par_n, par_d, NULL);
|
||||||
|
|
||||||
caps = gst_caps_new_empty ();
|
caps = gst_caps_new_empty ();
|
||||||
gst_caps_append_structure (caps, structure);
|
gst_caps_append_structure (caps, structure);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user