mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Performance improvement / lower buffer ? (seems to improve under OSX)
This commit is contained in:
@@ -154,8 +154,8 @@ void MediaPlayer::execute_open()
|
|||||||
if (sink) {
|
if (sink) {
|
||||||
|
|
||||||
// set all properties
|
// set all properties
|
||||||
g_object_set (sink, "emit-signals", TRUE, "sync", TRUE, "enable-last-sample", TRUE,
|
g_object_set (sink, "emit-signals", TRUE, "sync", TRUE, "enable-last-sample", TRUE,
|
||||||
"wait-on-eos", FALSE, "max-buffers", 100, "caps", caps, NULL);
|
"wait-on-eos", FALSE, "max-buffers", 50, "caps", caps, NULL);
|
||||||
|
|
||||||
// connect callbacks
|
// connect callbacks
|
||||||
g_signal_connect(G_OBJECT(sink), "new-sample", G_CALLBACK (callback_pull_sample_video), this);
|
g_signal_connect(G_OBJECT(sink), "new-sample", G_CALLBACK (callback_pull_sample_video), this);
|
||||||
|
|||||||
Reference in New Issue
Block a user