niimaqdxsrc: use pixel-aspect-ratio for caps not par

This commit is contained in:
Joshua M. Doe 2017-05-03 12:51:07 -04:00
parent a4af051165
commit ebe9271d5c

View File

@ -310,11 +310,12 @@ gst_niimaqdxsrc_new_caps_from_pixel_format (const char *pixel_format,
structure = gst_structure_from_string (caps_string, NULL);
if (structure == NULL)
return NULL;
gst_structure_set (structure,
"width", G_TYPE_INT, width,
"height", G_TYPE_INT, height,
"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 ();
gst_caps_append_structure (caps, structure);