mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-09 16:02:59 +00:00
dvbsrc: fix pes filter pid resetting
This commit is contained in:
parent
ac7cda4b3b
commit
94cd09363a
1 changed files with 7 additions and 1 deletions
|
@ -514,7 +514,11 @@ gst_dvbsrc_set_property (GObject * _object, guint prop_id,
|
||||||
pid_string = g_value_dup_string (value);
|
pid_string = g_value_dup_string (value);
|
||||||
if (!strcmp (pid_string, "8192")) {
|
if (!strcmp (pid_string, "8192")) {
|
||||||
/* get the whole ts */
|
/* get the whole ts */
|
||||||
|
int pid_count = 1;
|
||||||
object->pids[0] = 8192;
|
object->pids[0] = 8192;
|
||||||
|
while (pid_count < MAX_FILTERS) {
|
||||||
|
object->pids[pid_count++] = G_MAXUINT16;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
int pid = 0;
|
int pid = 0;
|
||||||
int pid_count;
|
int pid_count;
|
||||||
|
@ -539,6 +543,9 @@ gst_dvbsrc_set_property (GObject * _object, guint prop_id,
|
||||||
}
|
}
|
||||||
pids++;
|
pids++;
|
||||||
}
|
}
|
||||||
|
while (pid_count < MAX_FILTERS) {
|
||||||
|
object->pids[pid_count++] = G_MAXUINT16;
|
||||||
|
}
|
||||||
|
|
||||||
g_strfreev (tmp);
|
g_strfreev (tmp);
|
||||||
}
|
}
|
||||||
|
@ -1347,7 +1354,6 @@ gst_dvbsrc_unset_pes_filters (GstDvbSrc * object)
|
||||||
GST_INFO_OBJECT (object, "clearing PES filter");
|
GST_INFO_OBJECT (object, "clearing PES filter");
|
||||||
|
|
||||||
for (i = 0; i < MAX_FILTERS; i++) {
|
for (i = 0; i < MAX_FILTERS; i++) {
|
||||||
object->pids[i] = G_MAXUINT16;
|
|
||||||
if (object->fd_filters[i] == -1)
|
if (object->fd_filters[i] == -1)
|
||||||
continue;
|
continue;
|
||||||
close (object->fd_filters[i]);
|
close (object->fd_filters[i]);
|
||||||
|
|
Loading…
Reference in a new issue