mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
plugin: sink: allow detecting and/or setting media rotation. Fixes #310
GstClapperSink now allows to specify the media rotation via the `rotation` property, which should be of type GstVideoOrientationMethod. The default behaviour is to detect the media rotation automatically. Signed-off-by: Eugenio Paolantonio (g7) <me@medesimo.eu>
This commit is contained in:
@@ -50,6 +50,7 @@ struct _GstClapperSink
|
||||
GstClapperImporterLoader *loader;
|
||||
GstClapperImporter *importer;
|
||||
GstVideoInfo v_info;
|
||||
GstVideoOrientationMethod stream_orientation;
|
||||
|
||||
GtkWidget *widget;
|
||||
GtkWindow *window;
|
||||
@@ -58,6 +59,7 @@ struct _GstClapperSink
|
||||
gboolean force_aspect_ratio;
|
||||
gint par_n, par_d;
|
||||
gboolean keep_last_frame;
|
||||
GstVideoOrientationMethod rotation_mode;
|
||||
|
||||
/* Position coords */
|
||||
gdouble last_pos_x;
|
||||
|
Reference in New Issue
Block a user