diff options
author | Michal Ratajsky <[email protected]> | 2016-01-09 20:25:33 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-02-21 11:55:59 +0100 |
commit | 9cbe39ab7c55bcad401de32716c5c8106f166291 (patch) | |
tree | 42fb4f92923890f6c3070e95f5ff0ba88358da46 /backends/oss/oss-stream-control.c | |
parent | d1deea43570dfd5bd32b7040f89cf3c971df3b9a (diff) | |
download | libmatemixer-9cbe39ab7c55bcad401de32716c5c8106f166291.tar.bz2 libmatemixer-9cbe39ab7c55bcad401de32716c5c8106f166291.tar.xz |
Provide and use convenience functions to remove some copy-pasted code
Diffstat (limited to 'backends/oss/oss-stream-control.c')
-rw-r--r-- | backends/oss/oss-stream-control.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/backends/oss/oss-stream-control.c b/backends/oss/oss-stream-control.c index bcb73fe..f826f62 100644 --- a/backends/oss/oss-stream-control.c +++ b/backends/oss/oss-stream-control.c @@ -206,11 +206,7 @@ oss_stream_control_close (OssStreamControl *control) { g_return_if_fail (OSS_IS_STREAM_CONTROL (control)); - if (control->priv->fd == -1) - return; - - close (control->priv->fd); - control->priv->fd = -1; + _mate_mixer_clear_fd (&control->priv->fd); } static guint |