BugFix Add keyframes every second of output recording

Also compilation warning fix for GValue init.
This commit is contained in:
Bruno Herbelin
2024-04-29 23:45:48 +02:00
parent fd9c868c40
commit cd8f9792ab
7 changed files with 21 additions and 7 deletions

View File

@@ -131,7 +131,7 @@ std::string ShmdataBroadcast::init(GstCaps *caps)
// specify streaming framerate in the given caps
GstCaps *tmp = gst_caps_copy( caps );
GValue v = { 0, };
GValue v = G_VALUE_INIT;
g_value_init (&v, GST_TYPE_FRACTION);
gst_value_set_fraction (&v, SHMDATA_FPS, 1); // fixed 30 FPS
gst_caps_set_value(tmp, "framerate", &v);