mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
e666b3f759
commit
b2880cdd03
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue