File: GstPluginFeature.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 (26 lines) | stat: -rw-r--r-- 540 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
25
26
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 5;

# $Id$

use GStreamer -init;

my $feature = GStreamer::ElementFactory -> find("alsasink");
SKIP: {
  skip 'failed to load alsasink', 5
    unless defined $feature;

  isa_ok($feature, "GStreamer::PluginFeature");

  isa_ok($feature = $feature -> load(), "GStreamer::PluginFeature");

  $feature -> set_rank(23);
  is($feature -> get_rank(), 23);

  $feature -> set_name("alsasink");
  is($feature -> get_name(), "alsasink");

  ok($feature -> check_version(0, 0, 0));
}