summaryrefslogtreecommitdiff
path: root/libavdevice/pulse_audio_dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice/pulse_audio_dec.c')
-rw-r--r--libavdevice/pulse_audio_dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/pulse_audio_dec.c b/libavdevice/pulse_audio_dec.c
index 95a1d6ecfa..5977fb7e9e 100644
--- a/libavdevice/pulse_audio_dec.c
+++ b/libavdevice/pulse_audio_dec.c
@@ -158,8 +158,8 @@ static av_cold int pulse_read_header(AVFormatContext *s)
attr.fragsize = pd->fragment_size;
- if (s->filename[0] != '\0' && strcmp(s->filename, "default"))
- device = s->filename;
+ if (s->url[0] != '\0' && strcmp(s->url, "default"))
+ device = s->url;
if (!(pd->mainloop = pa_threaded_mainloop_new())) {
pulse_close(s);