diff --git a/.gitignore b/.gitignore
index 9d4f0d80..7e435757 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,36 +3,21 @@ Output/Songs
*.mp4
*.pdb
/Output/Benchmark.log
-
/Output/CoverDB.sqlite
-
/Output/HighscoreDB.sqlite
-
/Output/PartyModes/*/Code/*
-
/Output/Vocaluxe.exe*
-
/Output/Vocaluxe.vshost.exe*
-
/Output/VocaluxeLib.dll
-
*.psess
-
/*.vsp
-
/*.ctl
-
/Output/Registration.xml
-
/Vocaluxe.suo
/Vocaluxe/Vocaluxe.csproj.user
-
/Output/Config.xml
-
*.ipch
-
*.log
-
/Output/Playlists/*.xml
/Output/x64/gstreamer/GstreamerHelper.dll
*.tlog
@@ -42,8 +27,10 @@ Output/Songs
*.pch
*.idb
*.exp
-
*.ilk
*.lib
*.opensdf
*.sdf
+*.codeanalysis*
+*.nativecodeanalysis*
+*.lastcodeanalysissucceeded
diff --git a/GstreamerHelper/GstreamerVideo.cpp b/GstreamerHelper/GstreamerVideo.cpp
index 7834eef1..214f0709 100644
--- a/GstreamerHelper/GstreamerVideo.cpp
+++ b/GstreamerHelper/GstreamerVideo.cpp
@@ -65,7 +65,7 @@ DllExport bool CloseVideo(int Stream)
DllExport int GetVideoNumStreams()
{
- return VideoStreams.size();
+ return (int) VideoStreams.size();
}
DllExport float GetVideoLength(int Stream)
@@ -85,6 +85,13 @@ DllExport struct ApplicationFrame GetFrame(int Stream, float Time)
{
return it->second->GetFrame(Time);
}
+ struct ApplicationFrame returnFrame;
+ returnFrame.size=0;
+ returnFrame.width=0;
+ returnFrame.height=0;
+ returnFrame.data=NULL;
+ returnFrame.videotime=0;
+ return returnFrame;
}
DllExport bool Skip(int Stream, float Start, float Gap)
diff --git a/GstreamerHelper/GstreamerVideoStream.cpp b/GstreamerHelper/GstreamerVideoStream.cpp
index d67f4656..93c98df0 100644
--- a/GstreamerHelper/GstreamerVideoStream.cpp
+++ b/GstreamerHelper/GstreamerVideoStream.cpp
@@ -180,7 +180,7 @@ struct ApplicationFrame GstreamerVideoStream::GetFrame(float Time)
gst_buffer_map(Buffer, &Mapinfo, GST_MAP_READ);
- Size = Mapinfo.size;
+ Size = (int) Mapinfo.size;
gst_structure_get_int (BufferStructure, "width", &Width);
gst_structure_get_int (BufferStructure, "height", &Height);
VideoTime = (float) (Buffer->pts / GST_SECOND);
@@ -210,7 +210,7 @@ struct ApplicationFrame GstreamerVideoStream::GetFrame(float Time)
bool GstreamerVideoStream::Skip(float Start, float Gap)
{
- if(!gst_element_seek_simple(Element, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE), (Start + Gap) * GST_SECOND))
+ if(!gst_element_seek_simple(Element, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE), (gint64)((Start + Gap) * GST_SECOND)))
{
LogVideoError("Seek failed");
return true;
diff --git a/GstreamerHelper/GstreamerVideoStream.h b/GstreamerHelper/GstreamerVideoStream.h
index 29183571..7d69e019 100644
--- a/GstreamerHelper/GstreamerVideoStream.h
+++ b/GstreamerHelper/GstreamerVideoStream.h
@@ -57,7 +57,7 @@ private:
volatile gboolean Copying;
gboolean Paused;
- gboolean Finished;
+ bool Finished;
gfloat Duration;
diff --git a/Vocaluxe/Vocaluxe.csproj b/Vocaluxe/Vocaluxe.csproj
index d750f21c..cf32e0fc 100644
--- a/Vocaluxe/Vocaluxe.csproj
+++ b/Vocaluxe/Vocaluxe.csproj
@@ -13,6 +13,9 @@
v2.0
512
false
+ Vocaluxe.MainProgram
+ Vocaluxe.ico
+
publish\
true
Disk
@@ -27,9 +30,6 @@
1.0.0.%2a
false
true
- Vocaluxe.MainProgram
- Vocaluxe.ico
-
x86
diff --git a/gstreamerhelper/VocaluxeClock.cpp b/gstreamerhelper/VocaluxeClock.cpp
index cfe7e677..ba84cfd0 100644
--- a/gstreamerhelper/VocaluxeClock.cpp
+++ b/gstreamerhelper/VocaluxeClock.cpp
@@ -70,7 +70,7 @@ vocaluxe_clock_get_internal_time (GstClock * clock)
_vocaluxeclock = GST_VOCALUXE_CLOCK_CAST (clock);
- result = _vocaluxeclock->time * GST_SECOND;
+ result = (GstClockTime) _vocaluxeclock->time * GST_SECOND;
return result;
}