Skip to content

Commit

Permalink
killing & clearing gst_pid with pseudoseek
Browse files Browse the repository at this point in the history
  • Loading branch information
zpmorgan committed Feb 13, 2012
1 parent e6fb7e0 commit bcb702b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/PDL/GStreamer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ my ($loop); #cruft below.
has gst_pid => (
is => 'rw',
isa => 'Int',
clearer => 'clear_gst_pid',
);

has playing => (
Expand All @@ -36,6 +37,10 @@ sub seek{
close $self->input_fd;
close $self->info_fd;
}
if ($self->gst_pid){
kill 15, $self->gst_pid;
$self->clear_gst_pid;
}
$self->start_time($time);
}

Expand Down

0 comments on commit bcb702b

Please sign in to comment.