plugin: Fix scaled subtitles position on anamorph video

GStreamer does not take pixel aspect ratio into account for overlay rectangles.
If we do so, we end up with subtitles that are displayed off-center.
Behave like any other GStreamer sink on this matter.
This commit is contained in:
Rafał Dzięgiel
2022-05-27 19:38:02 +02:00
parent 87b3fbc15a
commit 5289b2f0a4
3 changed files with 17 additions and 12 deletions

View File

@@ -99,6 +99,6 @@ void gst_clapper_importer_add_allocation_metas (GstClapperImporter
void gst_clapper_importer_set_caps (GstClapperImporter *importer, GstCaps *caps);
void gst_clapper_importer_set_buffer (GstClapperImporter *importer, GstBuffer *buffer);
void gst_clapper_importer_snapshot (GstClapperImporter *importer, GdkSnapshot *snapshot, gdouble width, gdouble height, gfloat scale_x, gfloat scale_y);
void gst_clapper_importer_snapshot (GstClapperImporter *importer, GdkSnapshot *snapshot, gdouble width, gdouble height);
G_END_DECLS