dvb: better dvsrc polarity info
This commit is contained in:
parent
e3b2886b01
commit
257d6e6e8a
@ -529,11 +529,14 @@ gst_dvbsrc_set_property (GObject * _object, guint prop_id,
|
|||||||
const char *s = NULL;
|
const char *s = NULL;
|
||||||
|
|
||||||
s = g_value_get_string (value);
|
s = g_value_get_string (value);
|
||||||
if (s != NULL)
|
if (s != NULL) {
|
||||||
object->pol = (s[0] == 'h' || s[0] == 'H') ? DVB_POL_H : DVB_POL_V;
|
object->pol = (s[0] == 'h' || s[0] == 'H') ? DVB_POL_H : DVB_POL_V;
|
||||||
}
|
GST_INFO_OBJECT (object, "Set Property: ARG_DVBSRC_POLARITY");
|
||||||
GST_INFO_OBJECT (object, "Set Property: ARG_DVBSRC_POLARITY");
|
GST_INFO_OBJECT (object, "\t%s", (s[0] == 'h'
|
||||||
|
|| s[0] == 'H') ? "DVB_POL_H" : "DVB_POL_V");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case ARG_DVBSRC_PIDS:
|
case ARG_DVBSRC_PIDS:
|
||||||
{
|
{
|
||||||
gchar *pid_string;
|
gchar *pid_string;
|
||||||
@ -565,7 +568,7 @@ gst_dvbsrc_set_property (GObject * _object, guint prop_id,
|
|||||||
while (*pids != NULL && pid_count < MAX_FILTERS) {
|
while (*pids != NULL && pid_count < MAX_FILTERS) {
|
||||||
pid = strtol (*pids, NULL, 0);
|
pid = strtol (*pids, NULL, 0);
|
||||||
if (pid > 1 && pid <= 8192) {
|
if (pid > 1 && pid <= 8192) {
|
||||||
GST_INFO_OBJECT (object, "Parsed Pid: %d", pid);
|
GST_INFO_OBJECT (object, "\tParsed Pid: %d", pid);
|
||||||
object->pids[pid_count] = pid;
|
object->pids[pid_count] = pid;
|
||||||
pid_count++;
|
pid_count++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user