File: GstPipeline.t

package info (click to toggle)
libgstreamer-perl 0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 900 kB
  • ctags: 59
  • sloc: perl: 2,456; ansic: 32; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 5;

# $Id$

use GStreamer -init;

my $pipeline = GStreamer::Pipeline -> new("urgs");
isa_ok($pipeline, "GStreamer::Pipeline");

isa_ok($pipeline -> get_bus(), "GStreamer::Bus");

$pipeline -> set_new_stream_time(23);
is($pipeline -> get_last_stream_time(), 23);

my $clock = $pipeline -> get_clock();
isa_ok($clock, "GStreamer::Clock");

$pipeline -> set_clock($clock);
is($pipeline -> get_clock(), $clock);

$pipeline -> auto_clock();