diff --git a/MediaPlayer.cpp b/MediaPlayer.cpp index 9f1a398..b3c1d3a 100644 --- a/MediaPlayer.cpp +++ b/MediaPlayer.cpp @@ -1322,7 +1322,7 @@ GstFlowReturn MediaPlayer::callback_new_sample (GstAppSink *sink, gpointer p) -MediaPlayer::TimeCounter::TimeCounter() +MediaPlayer::TimeCounter::TimeCounter(): fps(1.f) { timer = g_timer_new (); } diff --git a/Stream.cpp b/Stream.cpp index 2f3bfdf..6f7bf61 100644 --- a/Stream.cpp +++ b/Stream.cpp @@ -872,7 +872,7 @@ GstFlowReturn Stream::callback_new_sample (GstAppSink *sink, gpointer p) -Stream::TimeCounter::TimeCounter() +Stream::TimeCounter::TimeCounter(): fps(1.f) { timer = g_timer_new (); }