Re: GrlMediaBox serialize unserialize problem



On Thu, 2013-06-06 at 12:58 +0200, Roland Peffer wrote:
Hi Juan,

below is the serialized string.
As i said, the url starting with url=dvbt://  gets parsed, but then not attached to the GrlMediaBox Object.
As if a GrlMediaBox object does not like to get an url from unserialisation.
If I just set/ get it in other cases no problems occour.

grlbox://grl-dvb/sid%3A2?title=arte&description=ARD%0AService%20ID%3A%202%0AFrequency%3A%20690000%20kHz%0ABandwidth%3A%208k&url=dvbt%3A%2F%2F%20frequency%3D690000000%20bandwidth%3D8k%20program%3D2%20pcr_pid%3D0x1121%20audio_pids%3D0x1123%3A0x1122%20video_pids%3D0x1121%20ttx_pids%3D0x1124%20other_pids%3D0x87c%3A0x1d6

Roland


Seems there's a bug with the unserialization.

Could you file a bug, and add the serialized string as example?

Meanwhile, I've found this workaround works for this case.

If media is the unserialized GrlMedia, this returns the URL value

gchar *url =
grl_related_keys_get_string(grl_data_get_related_keys(GRL_DATA(media),
GRL_METADATA_KEY_URL, 1), GRL_METADATA_KEY_URL);


BR
        J.A.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]