mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 21:12:26 +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);
|
||||
if (!strcmp (pid_string, "8192")) {
|
||||
/* get the whole ts */
|
||||
int pid_count = 1;
|
||||
object->pids[0] = 8192;
|
||||
while (pid_count < MAX_FILTERS) {
|
||||
object->pids[pid_count++] = G_MAXUINT16;
|
||||
}
|
||||
} else {
|
||||
int pid = 0;
|
||||
int pid_count;
|
||||
|
@ -539,6 +543,9 @@ gst_dvbsrc_set_property (GObject * _object, guint prop_id,
|
|||
}
|
||||
pids++;
|
||||
}
|
||||
while (pid_count < MAX_FILTERS) {
|
||||
object->pids[pid_count++] = G_MAXUINT16;
|
||||
}
|
||||
|
||||
g_strfreev (tmp);
|
||||
}
|
||||
|
@ -1347,7 +1354,6 @@ gst_dvbsrc_unset_pes_filters (GstDvbSrc * object)
|
|||
GST_INFO_OBJECT (object, "clearing PES filter");
|
||||
|
||||
for (i = 0; i < MAX_FILTERS; i++) {
|
||||
object->pids[i] = G_MAXUINT16;
|
||||
if (object->fd_filters[i] == -1)
|
||||
continue;
|
||||
close (object->fd_filters[i]);
|
||||
|
|
Loading…
Reference in a new issue