Added basic video support, not working very good
This commit is contained in:
1 parent
8fbe3f8501
commit
ea4a8abd87
4 files changed
+6
-4
No files matched your search
@@ -108,7 +108,7 @@
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>gstreamer-1.0.lib;gstcontroller-1.0.lib;gobject-2.0.lib;glib-2.0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>gstreamer-1.0.lib;gstcontroller-1.0.lib;gobject-2.0.lib;glib-2.0.lib;gstapp-1.0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='DebugWin|x64'">
|
||||
@@ -140,7 +140,7 @@
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>gstreamer-1.0.lib;gstcontroller-1.0.lib;gobject-2.0.lib;glib-2.0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>gstreamer-1.0.lib;gstcontroller-1.0.lib;gobject-2.0.lib;glib-2.0.lib;gstapp-1.0.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWin|x64'">
|
||||
|
||||
@@ -53,7 +53,6 @@ int GstreamerVideoStream::LoadVideo(const wchar_t* Filename)
|
||||
return -1;
|
||||
}
|
||||
|
||||
gst_app_sink_set_drop(Appsink, true);
|
||||
g_object_set(Element, "uri", Filename, NULL);
|
||||
g_object_set(Element, "video-sink", Appsink, NULL);
|
||||
g_object_set(Element, "flags", GST_PLAY_FLAG_VIDEO, NULL);
|
||||
@@ -66,7 +65,9 @@ int GstreamerVideoStream::LoadVideo(const wchar_t* Filename)
|
||||
NULL);
|
||||
|
||||
gst_app_sink_set_caps(Appsink, caps);
|
||||
gst_app_sink_set_max_buffers(Appsink, 5);
|
||||
|
||||
gst_app_sink_set_drop(Appsink, false);
|
||||
gst_app_sink_set_max_buffers(Appsink, 1);
|
||||
|
||||
gst_pipeline_use_clock((GstPipeline *)Element, (GstClock*) Clock);
|
||||
gst_element_set_state(Element, GST_STATE_PLAYING);
|
||||
@@ -161,6 +162,7 @@ float GstreamerVideoStream::GetVideoLength()
|
||||
|
||||
struct ApplicationFrame GstreamerVideoStream::GetFrame(float Time)
|
||||
{
|
||||
vocaluxe_clock_set_time(Clock, Time);
|
||||
return Frame;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user