aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-mailbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx18/cx18-mailbox.c')
-rw-r--r--drivers/media/video/cx18/cx18-mailbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/cx18/cx18-mailbox.c b/drivers/media/video/cx18/cx18-mailbox.c
index 956aa190ecca..c545f3beef78 100644
--- a/drivers/media/video/cx18/cx18-mailbox.c
+++ b/drivers/media/video/cx18/cx18-mailbox.c
@@ -136,7 +136,7 @@ static void cx18_mdl_send_to_dvb(struct cx18_stream *s, struct cx18_mdl *mdl)
136{ 136{
137 struct cx18_buffer *buf; 137 struct cx18_buffer *buf;
138 138
139 if (!s->dvb.enabled || mdl->bytesused == 0) 139 if (s->dvb == NULL || !s->dvb->enabled || mdl->bytesused == 0)
140 return; 140 return;
141 141
142 /* We ignore mdl and buf readpos accounting here - it doesn't matter */ 142 /* We ignore mdl and buf readpos accounting here - it doesn't matter */
@@ -146,7 +146,7 @@ static void cx18_mdl_send_to_dvb(struct cx18_stream *s, struct cx18_mdl *mdl)
146 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, 146 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer,
147 list); 147 list);
148 if (buf->bytesused) 148 if (buf->bytesused)
149 dvb_dmx_swfilter(&s->dvb.demux, 149 dvb_dmx_swfilter(&s->dvb->demux,
150 buf->buf, buf->bytesused); 150 buf->buf, buf->bytesused);
151 return; 151 return;
152 } 152 }
@@ -154,7 +154,7 @@ static void cx18_mdl_send_to_dvb(struct cx18_stream *s, struct cx18_mdl *mdl)
154 list_for_each_entry(buf, &mdl->buf_list, list) { 154 list_for_each_entry(buf, &mdl->buf_list, list) {
155 if (buf->bytesused == 0) 155 if (buf->bytesused == 0)
156 break; 156 break;
157 dvb_dmx_swfilter(&s->dvb.demux, buf->buf, buf->bytesused); 157 dvb_dmx_swfilter(&s->dvb->demux, buf->buf, buf->bytesused);
158 } 158 }
159} 159}
160 160