aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-mailbox.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@md.metrocast.net>2010-12-11 18:38:20 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:17:10 -0500
commit754f9969c323559a12bce1475f3c1e6574129856 (patch)
tree3345067e0920d27112b1449152d83e291fd348b3 /drivers/media/video/cx18/cx18-mailbox.c
parentfa98447f09641adeeaf02b94133649f03b74d159 (diff)
[media] cx18: Only allocate a struct cx18_dvb for the DVB TS stream
The cx18_stream struct contained a struct cx18_dvb for every stream object, most of which were for analog capture. Now we only allocate the cx18_dvb object for the DTV TS stream. Signed-off-by: Andy Walls <awalls@md.metrocast.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
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