GNOME Bugzilla – Bug 796183
SeekFlags.Flush freezes playback
Last modified: 2018-11-03 11:09:12 UTC
Hello Basic tutorial 4 for a GStreamer (https://gstreamer.freedesktop.org/documentation/tutorials/basic/time-management.html) uses GST_SEEK_FLAG_FLUSH flag when seeking, while the C# version (https://github.com/GStreamer/gstreamer-sharp/blob/master/samples/BasicTutorial4.cs) does not. When I set seek flags to SeekFlags.Flush | SeekFlags.KeyUnit in C#, playback seeks OK, but freezes after single frame. Does SeekFlags.Flush work in C# binding for the GStreamer, and if not, are there any workarounds? Thanks, Tom
No reason why it wouldn't work, if there is an issue please provide a way to reproduce and as much details as possible :-)
Created attachment 372136 [details] VS project which reproduces a bug
Here's a Visual Studio project. The bug is in the line 83 of the Playback.cs Thanks, Tom
Created attachment 372163 [details] VS project which reproduces a bug Modified from the Basic tutorial 4. (https://github.com/GStreamer/gstreamer-sharp/blob/master/samples/BasicTutorial4.cs) When SeekFlags.Flush is added (in line 84) playback freezes.
I updated the BasicTutorial4 in #796184 and it works here perfectly well, could you try again with master?
I tried again with official GStreamer 32 and 64bits, and with MSYS2 GStreamer 32 and 64bits, and it's the same. I'm using GstSharp Nuget package. Do you have any more GstSharp binaries which you could attach here? I'd rather not build everything by myself. Btw, I have - latest Windows 10 Pro - AMD Ryzen 7 1700 - NVidia GTX 970 Thanks, Tom
I tried rebuilding gstreamer-sharp from the Github source, and finally made it work. I moved gstreamer-sharp to .net standard 2.0 project, and added Nuget package GioSharp (which includes GLibSharp) from here: https://www.nuget.org/packages/GioSharp/3.22.24.36 Original gstreamer-sharp also works, with the GtkSharp.Win32 Nuget package (https://www.nuget.org/packages/GtkSharp.Win32/3.1.2) Tom
(In reply to tomislavtustonic from comment #7) > I tried rebuilding gstreamer-sharp from the Github source, and finally made > it work. > > I moved gstreamer-sharp to .net standard 2.0 project, and added Nuget > package GioSharp (which includes GLibSharp) from here: > https://www.nuget.org/packages/GioSharp/3.22.24.36 Where did you do that? Willing to provide a patch? :-)
Created attachment 372415 [details] csproj files for .net standard and .net framework
There is not much to be patched. Just use one of these .csproj files, replace the old project, and it should be fine. gstreamer-sharp.NF is a project file for .Net framework gstreamer-sharp.NS is a projeect file for .Net standard 2 there's also a patch file, it wouldn't compile without it. These project files are for Visual Studio 2017. Hope everything is OK. Tom
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer-sharp/issues/5.