forked MediaInput into two derived classes for video and audio

Rather than convoluting the MediaInput node, te MediaInput is now an abstract
base class that provides access to a Decoder and derived classes are
responsible for handling it
This commit is contained in:
itsmattkc
2019-10-24 17:03:33 +11:00
parent 2fdf78df4a
commit af702835da
12 changed files with 401 additions and 289 deletions
+2 -2
View File
@@ -28,7 +28,7 @@
#include "core.h"
#include "node/distort/transform/transform.h"
#include "node/color/opacity/opacity.h"
#include "node/input/media/media.h"
#include "node/input/media/video/video.h"
TrackType TrackTypeFromStreamType(Stream::Type stream_type)
{
@@ -217,7 +217,7 @@ void TimelineWidget::ImportTool::DragDrop(TimelineViewMouseEvent *event)
TimelineViewGhostItem* ghost = parent()->ghost_items_.at(i);
ClipBlock* clip = new ClipBlock();
MediaInput* media = new MediaInput();
VideoInput* media = new VideoInput();
TransformDistort* transform = new TransformDistort();
OpacityNode* opacity = new OpacityNode();