mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-17 05:09:58 +01:00
BugFix Add keyframes every second of output recording
Also compilation warning fix for GValue init.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user