summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/avdtp.c8
-rw-r--r--audio/control.c1
2 files changed, 4 insertions, 5 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 1ce76bc4..00045820 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -561,6 +561,9 @@ static void stream_free(struct avdtp_stream *stream)
if (stream->timer)
g_source_remove(stream->timer);
+ if (stream->sock >= 0)
+ close(stream->sock);
+
if (stream->io)
g_source_remove(stream->io);
@@ -720,11 +723,6 @@ static void release_stream(struct avdtp_stream *stream, struct avdtp *session)
{
struct avdtp_local_sep *sep = stream->lsep;
- if (stream->sock >= 0)
- close(stream->sock);
- if (stream->io)
- g_source_remove(stream->io);
-
if (sep->cfm && sep->cfm->abort)
sep->cfm->abort(session, sep, stream, NULL, sep->user_data);
diff --git a/audio/control.c b/audio/control.c
index bd100331..3f512672 100644
--- a/audio/control.c
+++ b/audio/control.c
@@ -443,6 +443,7 @@ static int uinput_create(char *name)
ioctl(fd, UI_SET_EVBIT, EV_KEY);
ioctl(fd, UI_SET_EVBIT, EV_REL);
ioctl(fd, UI_SET_EVBIT, EV_REP);
+ ioctl(fd, UI_SET_EVBIT, EV_SYN);
ioctl(fd, UI_SET_KEYBIT, KEY_PLAYPAUSE);
ioctl(fd, UI_SET_KEYBIT, KEY_STOP);