Skip to content

Commit

Permalink
Call ignition::common::load() from Video constructor (#111)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Pecka <peckama2@fel.cvut.cz>
  • Loading branch information
peci1 authored and mjcarroll committed Oct 29, 2020
1 parent 5755adb commit 6eef679
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions av/src/Video.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "ignition/common/Console.hh"
#include "ignition/common/ffmpeg_inc.hh"
#include "ignition/common/Video.hh"
#include "ignition/common/av/Util.hh"

using namespace ignition;
using namespace common;
Expand Down Expand Up @@ -48,6 +49,8 @@ class ignition::common::VideoPrivate
Video::Video()
: dataPtr(new VideoPrivate)
{
// Make sure libav is loaded.
ignition::common::load();
}

/////////////////////////////////////////////////
Expand Down

0 comments on commit 6eef679

Please sign in to comment.