After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796183 - SeekFlags.Flush freezes playback
SeekFlags.Flush freezes playback
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-sharp
1.14.0
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-05-16 21:13 UTC by tomislavtustonic
Modified: 2018-11-03 11:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
VS project which reproduces a bug (3.68 KB, application/x-zip-compressed)
2018-05-16 22:29 UTC, tomislavtustonic
Details
VS project which reproduces a bug (3.65 KB, application/x-zip-compressed)
2018-05-18 00:45 UTC, tomislavtustonic
Details
csproj files for .net standard and .net framework (2.04 KB, application/x-zip-compressed)
2018-05-25 20:51 UTC, tomislavtustonic
Details

Description tomislavtustonic 2018-05-16 21:13:08 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
Comment 1 Thibault Saunier 2018-05-16 21:54:32 UTC
No reason why it wouldn't work, if there is an issue please provide a way to reproduce and as much details as possible :-)
Comment 2 tomislavtustonic 2018-05-16 22:29:48 UTC
Created attachment 372136 [details]
VS project which reproduces a bug
Comment 3 tomislavtustonic 2018-05-16 22:30:57 UTC
Here's a Visual Studio project. The bug is in the line 83 of the Playback.cs

Thanks, Tom
Comment 4 tomislavtustonic 2018-05-18 00:45:57 UTC
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.
Comment 5 Thibault Saunier 2018-05-18 01:43:24 UTC
I updated the BasicTutorial4 in #796184 and it works here perfectly well, could you try again with  master?
Comment 6 tomislavtustonic 2018-05-18 21:57:35 UTC
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
Comment 7 tomislavtustonic 2018-05-24 01:11:38 UTC
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
Comment 8 Thibault Saunier 2018-05-24 08:47:36 UTC
(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? :-)
Comment 9 tomislavtustonic 2018-05-25 20:51:49 UTC
Created attachment 372415 [details]
csproj files for .net standard and .net framework
Comment 10 tomislavtustonic 2018-05-25 20:53:49 UTC
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
Comment 11 GStreamer system administrator 2018-11-03 11:09:12 UTC
-- 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.