mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
samples: Explicitly use Gtk range
Avoiding: error CS0104: `Range' is an ambiguous reference between `System.Range' and `Gtk.Range`
This commit is contained in:
parent
c5090bdd21
commit
a518db8224
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ namespace GstreamerSharp
|
|||
class Playback
|
||||
{
|
||||
static Element Playbin;
|
||||
static Range Slider;
|
||||
static Gtk.Range Slider;
|
||||
static TextView StreamsList;
|
||||
static ulong silderUpdateSignalID;
|
||||
|
||||
|
@ -22,7 +22,7 @@ namespace GstreamerSharp
|
|||
|
||||
static void HandleValueChanged (object sender, EventArgs e)
|
||||
{
|
||||
var range = (Range)sender;
|
||||
var range = (Gtk.Range)sender;
|
||||
var value = range.Value;
|
||||
Playbin.SeekSimple (Format.Time, SeekFlags.Flush | SeekFlags.KeyUnit, (long)(value * Gst.Constants.SECOND));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue