shmsrc: Do not call gst_poll_remove_fd upon stop if reading was never started

https://bugzilla.gnome.org/show_bug.cgi?id=768365
This commit is contained in:
Marcin Lewandowski 2016-07-04 12:19:36 +02:00 committed by Sebastian Dröge
parent e666b3f759
commit b2880cdd03

View file

@ -272,11 +272,11 @@ gst_shm_src_stop_reading (GstShmSrc * self)
if (self->pipe) { if (self->pipe) {
gst_shm_pipe_dec (self->pipe); gst_shm_pipe_dec (self->pipe);
self->pipe = NULL; self->pipe = NULL;
}
gst_poll_remove_fd (self->poll, &self->pollfd); gst_poll_remove_fd (self->poll, &self->pollfd);
gst_poll_fd_init (&self->pollfd); }
gst_poll_fd_init (&self->pollfd);
gst_poll_set_flushing (self->poll, TRUE); gst_poll_set_flushing (self->poll, TRUE);
} }